Skip to content

Commit

Permalink
savecore: emit information about saved cores under verbose
Browse files Browse the repository at this point in the history
Declare how many cores we saved, and where we saved them to.  Drop a
comment about emitting little information; it's obvious from the block
in question that we emit nothing without verbose.

Reviewed by:	markj
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
X-NetApp-PR:	freebsd#65
Differential Revision:	https://reviews.freebsd.org/D31393
  • Loading branch information
kevans91 committed Dec 8, 2021
1 parent cfc2cfe commit ace38c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sbin/savecore/savecore.c
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,6 @@ main(int argc, char **argv)
for (i = 0; i < argc; i++)
DoFile(savedir, savedirfd, devs[i]);

/* Emit minimal output. */
if (nfound == 0) {
if (checkfor) {
if (verbose)
Expand All @@ -1333,6 +1332,8 @@ main(int argc, char **argv)
exit(1);
} else if (verbose)
logmsg(LOG_WARNING, "no unsaved dumps found");
} else if (verbose) {
logmsg(LOG_NOTICE, "%d cores saved in %s\n", nsaved, savedir);
}

return (0);
Expand Down

0 comments on commit ace38c5

Please sign in to comment.