From patchwork Wed Oct 3 22:29:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Elliott, Robert (Servers)" X-Patchwork-Id: 10625355 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4B2901515 for ; Wed, 3 Oct 2018 22:26:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 366BE28DE5 for ; Wed, 3 Oct 2018 22:26:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 28629290FD; Wed, 3 Oct 2018 22:26:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AE02028DE5 for ; Wed, 3 Oct 2018 22:26:21 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 340E1211616A3; Wed, 3 Oct 2018 15:26:21 -0700 (PDT) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received-SPF: None (no SPF record) identity=mailfrom; client-ip=15.241.48.72; helo=g9t5008.houston.hpe.com; envelope-from=elliott@hpe.com; receiver=linux-nvdimm@lists.01.org Received: from g9t5008.houston.hpe.com (g9t5008.houston.hpe.com [15.241.48.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8A83321130E45 for ; Wed, 3 Oct 2018 15:26:19 -0700 (PDT) Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g9t5008.houston.hpe.com (Postfix) with ESMTP id 577D959 for ; Wed, 3 Oct 2018 22:26:18 +0000 (UTC) Received: from s17.americas.hpqcorp.net (s17.americas.hpqcorp.net [16.84.27.163]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id 2667E48; Wed, 3 Oct 2018 22:26:18 +0000 (UTC) From: Robert Elliott To: linux-nvdimm@lists.01.org Subject: [PATCH] ndctl, check-labels: correct check-labels message wording Date: Wed, 3 Oct 2018 17:29:01 -0500 Message-Id: <20181003222901.44438-1-elliott@hpe.com> X-Mailer: git-send-email 2.14.4 X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Virus-Scanned: ClamAV using ClamSMTP ndctl check-labels prints the number of labels, not the number of nmems. Changed the print for: $ ndctl check-labels nmem0 nmem1 from: successfully verified 510 nmems to: successfully verified 510 nmem labels Signed-off-by: Robert Elliott Reviewed-by: Dan Williams --- ndctl/dimm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndctl/dimm.c b/ndctl/dimm.c index a4203f3..699ab57 100644 --- a/ndctl/dimm.c +++ b/ndctl/dimm.c @@ -1147,7 +1147,7 @@ int cmd_check_labels(int argc, const char **argv, void *ctx) int count = dimm_action(argc, argv, ctx, action_check, base_options, "ndctl check-labels [..] []"); - fprintf(stderr, "successfully verified %d nmem%s\n", + fprintf(stderr, "successfully verified %d nmem label%s\n", count >= 0 ? count : 0, count > 1 ? "s" : ""); return count >= 0 ? 0 : EXIT_FAILURE; }