]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
mkfs: don't call values 'illegal', they're invalid
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 2 Feb 2018 15:32:43 +0000 (09:32 -0600)
committerEric Sandeen <sandeen@redhat.com>
Fri, 2 Feb 2018 15:32:43 +0000 (09:32 -0600)
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>
mkfs/xfs_mkfs.c

index 7c9d148c020fbfc8922d3dc633ded9d85f8ccb2f..6285b247f8a7c035303dc509b9dc1666784c08bc 100644 (file)
@@ -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();