[hackers] [ubase] Add dmesg manpage and fix dmesg usage || sin

From: <git_AT_suckless.org>
Date: Sat, 12 Apr 2014 14:58:44 +0200

commit 11e8626fcdeed28b8b3e28f6f20e1c2aad692f7b
Author: sin <sin_AT_2f30.org>
Date: Sat Apr 12 13:53:32 2014 +0100

    Add dmesg manpage and fix dmesg usage

diff --git a/dmesg.1 b/dmesg.1
new file mode 100644
index 0000000..5cef67f
--- /dev/null
+++ b/dmesg.1
_AT_@ -0,0 +1,18 @@
+.TH DMESG 1 ubase-VERSION
+.SH NAME
+ Bdmesg R - print or control the kernel ring buffer
+.SH SYNOPSIS
+ Bdmesg R [ B-Ccr R] [ B-n R Ilevel R]
+.SH DESCRIPTION
+ Bdmesg R 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
+ B-C R Clear the ring buffer.
+.TP
+ B-c R Clear the ring buffer after printing its contents.
+.TP
+ B-n R Set the console Ilevel R.
+.TP
+ B-r R Print the raw message buffer.
diff --git a/dmesg.c b/dmesg.c
index d86f56b..a4c5b43 100644
--- a/dmesg.c
+++ b/dmesg.c
_AT_@ -18,7 +18,7 @@ enum {
 static void
 usage(void)
 {
- eprintf("usage: [-Ccnr] %s
", argv0);
+ eprintf("usage: [-Ccr] [-n level] %s
", argv0);
 }
 
 int
Received on Sat Apr 12 2014 - 14:58:44 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 12 2014 - 15:00:15 CEST