1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 10:25:13 +03:00

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.
This commit is contained in:
Bryn M. Reeves 2015-08-13 18:12:56 +01:00
parent 6b81ac5807
commit b3cd5d2945

View File

@ -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;
}