From: Darrick J. Wong Date: Fri, 2 Feb 2018 15:32:43 +0000 (-0600) Subject: mkfs: don't call values 'illegal', they're invalid X-Git-Tag: v4.15.0-rc1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b1cf8bbf576c0e9a7e7fc38e2c1897376ec2056;p=thirdparty%2Fxfsprogs-dev.git 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 Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index 7c9d148c0..6285b247f 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();