summaryrefslogtreecommitdiffstats
path: root/sys-utils/dmesg.c
diff options
context:
space:
mode:
authorSami Kerola2013-04-02 21:42:48 +0200
committerKarel Zak2013-04-05 13:55:57 +0200
commit963ac50734a60a771da972b62819acf4b187141c (patch)
tree5620830f871a33ffd4295593e798cfdb0aed69a2 /sys-utils/dmesg.c
parentagetty: the command does not have -h and -V options (diff)
downloadkernel-qcow2-util-linux-963ac50734a60a771da972b62819acf4b187141c.tar.gz
kernel-qcow2-util-linux-963ac50734a60a771da972b62819acf4b187141c.tar.xz
kernel-qcow2-util-linux-963ac50734a60a771da972b62819acf4b187141c.zip
dmesg: fix usage() output consistancy
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>
Diffstat (limited to 'sys-utils/dmesg.c')
-rw-r--r--sys-utils/dmesg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c
index 3387ea4b9..6c7f7eda0 100644
--- a/sys-utils/dmesg.c
+++ b/sys-utils/dmesg.c
@@ -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);