From: Sami Kerola Date: Sun, 3 Aug 2014 12:42:32 +0000 (+0100) Subject: zramctl: improve error message X-Git-Tag: v2.26-rc1~538 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=929c7b2817e1e4aca72e60b02b891e86dcea9c21;p=thirdparty%2Futil-linux.git zramctl: improve error message Signed-off-by: Sami Kerola --- diff --git a/sys-utils/zramctl.c b/sys-utils/zramctl.c index bdab4ad592..a8d0bbdd70 100644 --- a/sys-utils/zramctl.c +++ b/sys-utils/zramctl.c @@ -497,7 +497,7 @@ int main(int argc, char **argv) act = find ? A_FINDONLY : A_STATUS; if (act != A_RESET && optind + 1 < argc) - usage(stderr); /* only --reset holds more devices */ + errx(EXIT_FAILURE, _("only one at a time is allowed")); switch (act) { case A_STATUS: