change GPRINT macro to let the log message easy to read