Fix syslog() and syslogp() message formatting in API test

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-11-04 20:10:36 +01:00
parent 512aaa1afc
commit 0ade961e60

View File

@ -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();