Fix syslog() and syslogp() message formatting in API test
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
512aaa1afc
commit
0ade961e60
@ -37,9 +37,9 @@ int main(int argc, char *argv[])
|
|||||||
openlog(ident, LOG_NOWAIT, facility);
|
openlog(ident, LOG_NOWAIT, facility);
|
||||||
|
|
||||||
if (v1)
|
if (v1)
|
||||||
syslogp(severity, "MSGID", NULL, msg);
|
syslogp(severity, "MSGID", NULL, "%s", msg);
|
||||||
else
|
else
|
||||||
syslog(severity, msg);
|
syslog(severity, "%s", msg);
|
||||||
|
|
||||||
if (ident)
|
if (ident)
|
||||||
closelog();
|
closelog();
|
||||||
|
Loading…
Reference in New Issue
Block a user