From nobody Wed Dec 08 00:39:42 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 35C3D18C84FD; Wed, 8 Dec 2021 00:39:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J7ywt6kszz4c7D; Wed, 8 Dec 2021 00:39:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B9F1E18A0; Wed, 8 Dec 2021 00:39:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1B80dgOJ055587; Wed, 8 Dec 2021 00:39:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B80dgQb055586; Wed, 8 Dec 2021 00:39:42 GMT (envelope-from git) Date: Wed, 8 Dec 2021 00:39:42 GMT Message-Id: <202112080039.1B80dgQb055586@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: ace38c58fbc2 - main - savecore: emit information about saved cores under verbose List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ace38c58fbc21f4eb614816fe885a9b9a5288c1f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638923983; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M+T//tln6EpK7Qc2nfkGCUEjCBretyi/1z9nqx4Pzbk=; b=bJO/gibx2XYkCXIFIgg0uayKsCTMfEexH7kQARYcny5LdbSIBsVBmVKHLrYSsioFIXecWM OxW0OqegjjePt51fJtAWK7HA2uYxQTWsI39YbBPYd/YFWF3HYMSPGK0J/clfn9EwZ/EhvQ EdF2B4+9wT3cnYDPDvobfyYA8NTFvYqQ9FeQKzQqeD4I+MyPJGUaqKEklqugCbiBSardEJ 9T+MjzGBTL5k6SvukHIZHFZy2C/AGjJrlBIJAcfxtriMKHNxJUxNGDuhlS6UYYb3/obdsz yyYX4VvDzmj4VyLli5ugqzIEYiyhKbtqPgdivUFyrKa1sNlAh/AqF/rLiG0vkg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638923983; a=rsa-sha256; cv=none; b=IJ0o8KJmJwTPUBHeHg3L7lI3qPHt/I2TvJ3mT+AIGIVry4QnO5pXDfpZ85OnnmcxkCKMcX h/aCJhRunWQ93nT8+slAHhlAO9LgwNEYhwdrlq0sF0hoyn2VYclQ/tHJZe6rlzbf7LzkDk wtUtMc7RdyPVmjCrS/jMG0pT/CqG1KxDCc4phsk6zo84nPW2HhNFVqLH049XPvsjDUkIsZ 1GFUx9OYujPJJdj4TCjlxtAIanEMUZokX4yZq6tOPIqAkWV+tI2NeX9ru8qUSLCZdotYcO ZFi+bS3/ftP98R4ls1fGtzyER9LomRud4pXtJ5N74rcjh2UBTco99ljoFvSesg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=ace38c58fbc21f4eb614816fe885a9b9a5288c1f commit ace38c58fbc21f4eb614816fe885a9b9a5288c1f Author: Kyle Evans AuthorDate: 2021-12-08 00:39:34 +0000 Commit: Kyle Evans CommitDate: 2021-12-08 00:39:34 +0000 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 --- sbin/savecore/savecore.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);