Fix the bug in the macro of writing the message to syslog