nvdimm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Robert Elliott <elliott@hpe.com>
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	[thread overview]
Message-ID: <20181003222901.44438-1-elliott@hpe.com> (raw)

ndctl check-labels prints the number of labels, not the number of
nmems. Changed the print for:

$ ndctl check-labels nmem0 nmem1
    successfully verified 510 nmems
    successfully verified 510 nmem labels

Signed-off-by: Robert Elliott <elliott@hpe.com>
 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 <nmem0> [<nmem1>..<nmemN>] [<options>]");
-	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;

Linux-nvdimm mailing list

             reply	other threads:[~2018-10-03 22:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-03 22:29 Robert Elliott [this message]
2018-10-04  0:15 ` Dan Williams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181003222901.44438-1-elliott@hpe.com \
    --to=elliott@hpe.com \
    --cc=linux-nvdimm@lists.01.org \
    --subject='Re: [PATCH] ndctl, check-labels: correct check-labels message wording' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).