From 0ade961e6014b6a040c5ded3af21b6bf54817f5e Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 4 Nov 2019 20:10:36 +0100 Subject: [PATCH] Fix syslog() and syslogp() message formatting in API test Signed-off-by: Joachim Nilsson --- test/api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/api.c b/test/api.c index cc6ca6d..f2ef7e2 100644 --- a/test/api.c +++ b/test/api.c @@ -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();