svn commit: r315547 - stable/11/sbin/savecore
Edward Tomasz Napierala
trasz at FreeBSD.org
Sun Mar 19 14:09:03 UTC 2017
Author: trasz
Date: Sun Mar 19 14:09:02 2017
New Revision: 315547
URL: https://svnweb.freebsd.org/changeset/base/315547
Log:
MFC r313946:
Make savecore(8) output nicer by specifying the maximum field width
instead of minimum one (precision instead of width).
Modified:
stable/11/sbin/savecore/savecore.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sbin/savecore/savecore.c
==============================================================================
--- stable/11/sbin/savecore/savecore.c Sun Mar 19 14:05:56 2017 (r315546)
+++ stable/11/sbin/savecore/savecore.c Sun Mar 19 14:09:02 2017 (r315547)
@@ -620,7 +620,7 @@ DoFile(const char *savedir, const char *
}
if (kdhl.panicstring[0] != '\0')
- syslog(LOG_ALERT, "reboot after panic: %*s",
+ syslog(LOG_ALERT, "reboot after panic: %.*s",
(int)sizeof(kdhl.panicstring), kdhl.panicstring);
else
syslog(LOG_ALERT, "reboot");
More information about the svn-src-stable-11
mailing list