[hackers] [ubase] Add dmesg manpage and fix dmesg usage || sin
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
+BdmesgR - print or control the kernel ring buffer
+.SH SYNOPSIS
+BdmesgR [B-CcrR] [B-nR IlevelR]
+.SH DESCRIPTION
+BdmesgR 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-CR Clear the ring buffer.
+.TP
+B-cR Clear the ring buffer after printing its contents.
+.TP
+B-nR Set the console IlevelR.
+.TP
+B-rR 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