]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
dmesg: fix usage() output consistancy
authorSami Kerola <kerolasa@iki.fi>
Tue, 2 Apr 2013 19:42:48 +0000 (20:42 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 5 Apr 2013 11:55:57 +0000 (13:55 +0200)
Possible facilities and levels are meant to be printed to same file as
the rest of the usage output.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/dmesg.c

index 3387ea4b97131b28d457c9513c66f368a8f041a4..6c7f7eda0775c7bd1d3e706deff47c2284f3fa10 100644 (file)
@@ -254,13 +254,13 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
        fputs(USAGE_VERSION, out);
        fputs(_("\nSupported log facilities:\n"), out);
        for (i = 0; i < ARRAY_SIZE(level_names); i++)
-               fprintf(stderr, " %7s - %s\n",
+               fprintf(out, " %7s - %s\n",
                        facility_names[i].name,
                        _(facility_names[i].help));
 
        fputs(_("\nSupported log levels (priorities):\n"), out);
        for (i = 0; i < ARRAY_SIZE(level_names); i++)
-               fprintf(stderr, " %7s - %s\n",
+               fprintf(out, " %7s - %s\n",
                        level_names[i].name,
                        _(level_names[i].help));
        fputs(USAGE_SEPARATOR, out);