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);
|
||||
|
||||
if (v1)
|
||||
syslogp(severity, "MSGID", NULL, msg);
|
||||
syslogp(severity, "MSGID", NULL, "%s", msg);
|
||||
else
|
||||
syslog(severity, msg);
|
||||
syslog(severity, "%s", msg);
|
||||
|
||||
if (ident)
|
||||
closelog();
|
||||
|
Loading…
Reference in New Issue
Block a user