summaryrefslogtreecommitdiffstats
path: root/sys-utils/dmesg.1
diff options
context:
space:
mode:
authorKarel Zak2011-07-13 15:50:47 +0200
committerKarel Zak2011-07-13 15:50:47 +0200
commit636a6207d954db32fbf4bfaa70ca4741d13b465c (patch)
tree36d0cf8b5e394602a580a3ca8260c377830ac466 /sys-utils/dmesg.1
parentdmesg: consolidate level parsiig code (diff)
downloadkernel-qcow2-util-linux-636a6207d954db32fbf4bfaa70ca4741d13b465c.tar.gz
kernel-qcow2-util-linux-636a6207d954db32fbf4bfaa70ca4741d13b465c.tar.xz
kernel-qcow2-util-linux-636a6207d954db32fbf4bfaa70ca4741d13b465c.zip
dmesg: add --level=<list>
For example dmesg --level=err,warn will print only error and warning messages. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/dmesg.1')
-rw-r--r--sys-utils/dmesg.16
1 files changed, 6 insertions, 0 deletions
diff --git a/sys-utils/dmesg.1 b/sys-utils/dmesg.1
index 8f61b8615..9518ecb64 100644
--- a/sys-utils/dmesg.1
+++ b/sys-utils/dmesg.1
@@ -38,6 +38,12 @@ Disable printing messages to the console.
Enable printing messages to the console.
.IP "\fB\-h, \-\-help\fP"
Print a help text and exit.
+.IP "\fB\-l, \-\-level \fIlist\fP"
+Restrict output to defined (comma separated) list of levels. For exmaple
+.sp
+ dmesg --level=err,warn
+.sp
+will print error and warning messages only.
.IP "\fB\-n, \-\-console-level \fIlevel\fP
Set the
.I level