From e6c379eb8d598321ad70d15ae13a087c53d715ab Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 17 Aug 2009 11:37:27 +0200 Subject: [PATCH] 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 --- sys-utils/dmesg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5