aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-02-02 09:32:43 -0600
committerEric Sandeen <sandeen@redhat.com>2018-02-02 09:32:43 -0600
commit0b1cf8bbf576c0e9a7e7fc38e2c1897376ec2056 (patch)
tree7f356f36c720a9f6fd2454a2280958589d95ceab
parent91c7d131631626eb701b149104aceae10ff1cb45 (diff)
downloadxfsprogs-dev-0b1cf8bbf576c0e9a7e7fc38e2c1897376ec2056.tar.gz
mkfs: don't call values 'illegal', they're invalid
Specifying invalid inputs to mkfs does not break any (reasonable) laws, so the error message should complain about invalid inputs. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r--mkfs/xfs_mkfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c
index 7c9d148c02..6285b247f8 100644
--- a/mkfs/xfs_mkfs.c
+++ b/mkfs/xfs_mkfs.c
@@ -911,7 +911,7 @@ illegal(
const char *value,
const char *opt)
{
- fprintf(stderr, _("Illegal value %s for -%s option\n"), value, opt);
+ fprintf(stderr, _("Invalid value %s for -%s option\n"), value, opt);
usage();
}
@@ -1267,7 +1267,7 @@ illegal_option(
const char *reason)
{
fprintf(stderr,
- _("Illegal value %s for -%c %s option. %s\n"),
+ _("Invalid value %s for -%c %s option. %s\n"),
value, opts->name, opts->subopts[index],
reason ? reason : "");
usage();