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");
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to