Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Mar 2017 14:09:02 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r315547 - stable/11/sbin/savecore
Message-ID:  <201703191409.v2JE92kD056990@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703191409.v2JE92kD056990>