aboutsummaryrefslogtreecommitdiff
path: root/sbin/savecore
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2021-12-08 00:39:34 +0000
committerKyle Evans <kevans@FreeBSD.org>2021-12-08 00:39:34 +0000
commitace38c58fbc21f4eb614816fe885a9b9a5288c1f (patch)
tree318e9fe62613fb0f28379a811682a94578c40a74 /sbin/savecore
parentcfc2cfeca195c9ad4a4b50aaf87b466cb9458f05 (diff)
downloadsrc-ace38c58fbc21f4eb614816fe885a9b9a5288c1f.tar.gz
src-ace38c58fbc21f4eb614816fe885a9b9a5288c1f.zip
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
Diffstat (limited to 'sbin/savecore')
-rw-r--r--sbin/savecore/savecore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c
index ff37484bb2f2..7a3065cd6a7c 100644
--- a/sbin/savecore/savecore.c
+++ b/sbin/savecore/savecore.c
@@ -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)
@@ -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);