Skip to contentSkip to conversation

master - dmstats: do not use "region_id" in error messages

PATCH Bryn Reeves 1 participant 1 message Aug 13, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=b3cd5d294503fcfa4b826456e17071a909d739e1
Commit:        b3cd5d294503fcfa4b826456e17071a909d739e1
Parent:        6b81ac5807bdbfdd0063db4f53cc6d310c2fe4fc
Author:        Bryn M. Reeves <[email protected]>
AuthorDate:    Thu Aug 13 18:12:56 2015 +0100
Committer:     Bryn M. Reeves <[email protected]>
CommitterDate: Thu Aug 13 19:05:48 2015 +0100

dmstats: do not use "region_id" in error messages

Refer to either '--regionid' or '--allregions' when the user fails to specify either a single region ID or the --allregions switch.

---
 tools/dmsetup.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
tools/dmsetup.c +3 -3
index 20ab3a0..1dcc7e3 100644
@@ -4216,7 +4216,7 @@ static int _stats_clear(CMD_ARGS)
 	}
 
 	if (!_switches[REGION_ID_ARG] && !_switches[ALL_REGIONS_ARG]) {
-		err("Please specify a region_id.");
+		err("Please specify a --regionid or use --allregions.");
 		return 0;
 	}
 
@@ -4499,7 +4499,7 @@ static int _stats_delete(CMD_ARGS)
 	}
 
 	if (!_switches[REGION_ID_ARG] && !allregions) {
-		err("Please specify a region_id.");
+		err("Please specify a --regionid or use --allregions.");
 		return 0;
 	}
 
@@ -4654,7 +4654,7 @@ static int _stats_print(CMD_ARGS)
 	}
 
 	if (!_switches[REGION_ID_ARG] && !allregions) {
-		err("Please specify a region_id.");
+		err("Please specify a --regionid or use --allregions.");
 		return 0;
 	}