ubase

suckless linux base utils
git clone git://git.2f30.org/ubase.git
Log | Files | Refs | README | LICENSE

commit 11e8626fcdeed28b8b3e28f6f20e1c2aad692f7b
parent 9c706df62dc05e1e55a9f949d8768b1ce9f6e440
Author: sin <sin@2f30.org>
Date:   Sat Apr 12 13:53:32 +0100

Add dmesg manpage and fix dmesg usage

Diffstat:
dmesg.1 | 18++++++++++++++++++
dmesg.c | 2+-
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/dmesg.1 b/dmesg.1 @@ -0,0 +1,18 @@ +.TH DMESG 1 ubase-VERSION +.SH NAME +\fBdmesg\fR - print or control the kernel ring buffer +.SH SYNOPSIS +\fBdmesg\fR [\fB-Ccr\fR] [\fB-n\fR \fIlevel\fR] +.SH DESCRIPTION +\fBdmesg\fR examines or controls the kernel ring buffer. By default +it reads all the messages from the kernel ring buffer and prints them +on stdout. +.SH OPTIONS +.TP +\fB-C\fR Clear the ring buffer. +.TP +\fB-c\fR Clear the ring buffer after printing its contents. +.TP +\fB-n\fR Set the console \fIlevel\fR. +.TP +\fB-r\fR Print the raw message buffer. diff --git a/dmesg.c b/dmesg.c @@ -18,7 +18,7 @@ enum { static void usage(void) { - eprintf("usage: [-Ccnr] %s\n", argv0); + eprintf("usage: [-Ccr] [-n level] %s\n", argv0); } int