Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen PR/55041: Fix printf format in syslog(3) error ...



details:   https://anonhg.NetBSD.org/src/rev/b7c038b85687
branches:  trunk
changeset: 745445:b7c038b85687
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 02 14:10:24 2020 +0000

description:
PR/55041: Fix printf format in syslog(3) error message.

diffstat:

 lib/libc/gen/xsyslog.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 73a8a0534f66 -r b7c038b85687 lib/libc/gen/xsyslog.c
--- a/lib/libc/gen/xsyslog.c    Mon Mar 02 11:09:13 2020 +0000
+++ b/lib/libc/gen/xsyslog.c    Mon Mar 02 14:10:24 2020 +0000
@@ -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 @@
        /* 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;
        }
 



Home | Main Index | Thread Index | Old Index