summaryrefslogtreecommitdiffstats
path: root/sys-utils/dmesg.c
diff options
context:
space:
mode:
authorKarel Zak2009-08-17 11:37:27 +0200
committerKarel Zak2009-08-17 11:37:27 +0200
commite6c379eb8d598321ad70d15ae13a087c53d715ab (patch)
treee228e043f5545a7f3b7f8b42e433079dda9df593 /sys-utils/dmesg.c
parentpo: fix grammar glitch in german translation (diff)
downloadkernel-qcow2-util-linux-e6c379eb8d598321ad70d15ae13a087c53d715ab.tar.gz
kernel-qcow2-util-linux-e6c379eb8d598321ad70d15ae13a087c53d715ab.tar.xz
kernel-qcow2-util-linux-e6c379eb8d598321ad70d15ae13a087c53d715ab.zip
dmesg: add -r to help output
On Tue, Aug 04, 2009 at 05:52:38PM +0200, Dalibor Straka wrote: > while I was reading the source, I've noticed missing option in the > help message for "-r". So I'm sending one-line patch for dmesg. Reported-by: Dalibor Straka <dast@panelnet.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
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 b634d86e5..fd184aaf4 100644
--- a/sys-utils/dmesg.c
+++ b/sys-utils/dmesg.c
@@ -42,7 +42,7 @@ static char *progname;
static void
usage(void) {
fprintf(stderr,
- _("Usage: %s [-c] [-n level] [-s bufsize]\n"), progname);
+ _("Usage: %s [-c] [-n level] [-r] [-s bufsize]\n"), progname);
}
int
@@ -88,7 +88,7 @@ main(int argc, char *argv[]) {
}
argc -= optind;
argv += optind;
-
+
if (argc > 1) {
usage();
exit(1);