Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Feb 2017 16:59:00 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r313946 - head/sbin/savecore
Message-ID:  <201702191659.v1JGx0gq089092@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Sun Feb 19 16:59:00 2017
New Revision: 313946
URL: https://svnweb.freebsd.org/changeset/base/313946

Log:
  Make savecore(8) output nicer by specifying the maximum field width
  instead of minimum one (precision instead of width).
  
  MFC after:	2 weeks
  Sponsored by:	DARPA, AFRL

Modified:
  head/sbin/savecore/savecore.c

Modified: head/sbin/savecore/savecore.c
==============================================================================
--- head/sbin/savecore/savecore.c	Sun Feb 19 16:40:03 2017	(r313945)
+++ head/sbin/savecore/savecore.c	Sun Feb 19 16:59:00 2017	(r313946)
@@ -651,7 +651,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?201702191659.v1JGx0gq089092>