1
0
mirror of git://git.suckless.org/ubase synced 2024-12-22 14:42:41 +00:00

Add dmesg manpage and fix dmesg usage

This commit is contained in:
sin 2014-04-12 13:53:32 +01:00
parent 9c706df62d
commit 11e8626fcd
2 changed files with 19 additions and 1 deletions

18
dmesg.1 Normal file
View File

@ -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.

View File

@ -18,7 +18,7 @@ enum {
static void static void
usage(void) usage(void)
{ {
eprintf("usage: [-Ccnr] %s\n", argv0); eprintf("usage: [-Ccr] [-n level] %s\n", argv0);
} }
int int