diff mbox

[ndctl,09/17] ndctl, region: cleanup error message

Message ID 151217071761.28402.13957732677246404516.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive)
State Accepted
Commit b0203ab9e2e2
Headers show

Commit Message

Dan Williams Dec. 1, 2017, 11:25 p.m. UTC
The general parameter parsing error message in parse_region_options()
was copied from the initial "disable-region" command implementation. Fix
it up to be more general and valid for all region commands.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 ndctl/region.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/ndctl/region.c b/ndctl/region.c
index 1402a7548be8..9fc90808e338 100644
--- a/ndctl/region.c
+++ b/ndctl/region.c
@@ -44,7 +44,7 @@  static const char *parse_region_options(int argc, const char **argv,
         argc = parse_options(argc, argv, region_options, u, 0);
 
 	if (argc == 0)
-		error("specify a region to delete, or \"all\"\n");
+		error("specify a specific region id to act on, or \"all\"\n");
 	for (i = 1; i < argc; i++)
 		error("unknown extra parameter \"%s\"\n", argv[i]);
 	if (argc == 0 || argc > 1) {