syslog
The message is identical to a printf(3) format string, except that `%m' is replaced by the current error message. (As denoted by the global variable errno; see strerror(3).) A trailing newline is added if none is present.
via freebsd.org
也就是說:
syslog(..., "main(): %s\n", strerror(errno));
等於:
syslog(..., "main(): %m");