From: Karel Zak Date: Mon, 17 Aug 2009 09:37:27 +0000 (+0200) Subject: dmesg: add -r to help output X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6c379eb8d598321ad70d15ae13a087c53d715ab;p=util-linux 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 Signed-off-by: Karel Zak --- diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c index b634d86e..fd184aaf 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);