Module Name: src
Committed By: christos
Date: Mon Mar 2 14:10:24 UTC 2020
Modified Files:
src/lib/libc/gen: xsyslog.c
Log Message:
PR/55041: Fix printf format in syslog(3) error message.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/gen/xsyslog.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gen/xsyslog.c
diff -u src/lib/libc/gen/xsyslog.c:1.5 src/lib/libc/gen/xsyslog.c:1.6
--- src/lib/libc/gen/xsyslog.c:1.5 Tue Apr 18 08:34:07 2017
+++ src/lib/libc/gen/xsyslog.c Mon Mar 2 09:10:24 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: xsyslog.c,v 1.5 2017/04/18 12:34:07 maya Exp $ */
+/* $NetBSD: xsyslog.c,v 1.6 2020/03/02 14:10:24 christos Exp $ */
/*
* Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)syslog.c 8.5 (Berkeley) 4/29/95";
#else
-__RCSID("$NetBSD: xsyslog.c,v 1.5 2017/04/18 12:34:07 maya Exp $");
+__RCSID("$NetBSD: xsyslog.c,v 1.6 2020/03/02 14:10:24 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -160,7 +160,7 @@ _vxsyslogp_r(int pri, struct syslog_fun
/* Check for invalid bits. */
if (pri & ~(LOG_PRIMASK|LOG_FACMASK)) {
_xsyslogp_r(INTERNALLOG, &_syslog_ss_fun, data, NULL, NULL,
- "%s: unknown facility/priority: %x", pri);
+ "Unknown facility/priority: %#x", pri);
pri &= LOG_PRIMASK|LOG_FACMASK;
}