Skip to content

Commit

Permalink
Make savecore(8) output nicer by specifying the maximum field width
Browse files Browse the repository at this point in the history
instead of minimum one (precision instead of width).

MFC after:	2 weeks
Sponsored by:	DARPA, AFRL
  • Loading branch information
trasz committed Feb 19, 2017
1 parent 91d226c commit 6f03f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbin/savecore/savecore.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ DoFile(const char *savedir, const char *device)
}

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");
Expand Down

0 comments on commit 6f03f3d

Please sign in to comment.