savecore: emit information about saved cores under verbose
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: #65 Differential Revision: https://reviews.freebsd.org/D31393
This commit is contained in:
parent
cfc2cfeca1
commit
ace38c58fb
@ -1316,7 +1316,6 @@ main(int argc, char **argv)
|
|||||||
for (i = 0; i < argc; i++)
|
for (i = 0; i < argc; i++)
|
||||||
DoFile(savedir, savedirfd, devs[i]);
|
DoFile(savedir, savedirfd, devs[i]);
|
||||||
|
|
||||||
/* Emit minimal output. */
|
|
||||||
if (nfound == 0) {
|
if (nfound == 0) {
|
||||||
if (checkfor) {
|
if (checkfor) {
|
||||||
if (verbose)
|
if (verbose)
|
||||||
@ -1333,6 +1332,8 @@ main(int argc, char **argv)
|
|||||||
exit(1);
|
exit(1);
|
||||||
} else if (verbose)
|
} else if (verbose)
|
||||||
logmsg(LOG_WARNING, "no unsaved dumps found");
|
logmsg(LOG_WARNING, "no unsaved dumps found");
|
||||||
|
} else if (verbose) {
|
||||||
|
logmsg(LOG_NOTICE, "%d cores saved in %s\n", nsaved, savedir);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
|
Loading…
Reference in New Issue
Block a user