PR/55041: Fix printf format in syslog(3) error message.
This commit is contained in:
parent
a587044e6f
commit
74707f6a8a
|
@ -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 *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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue