summaryrefslogtreecommitdiffstats
path: root/sys-utils/dmesg.1
diff options
context:
space:
mode:
authorKarel Zak2012-07-20 14:41:25 +0200
committerKarel Zak2012-07-20 14:41:25 +0200
commit37b04d6cce552116f31272a56d699f7c6cc91cdf (patch)
treefe0c460c9eb7a0e709fc770f6a584d0d2db47b2f /sys-utils/dmesg.1
parentdmesg: cleanup exclusive_option() usage (diff)
downloadkernel-qcow2-util-linux-37b04d6cce552116f31272a56d699f7c6cc91cdf.tar.gz
kernel-qcow2-util-linux-37b04d6cce552116f31272a56d699f7c6cc91cdf.tar.xz
kernel-qcow2-util-linux-37b04d6cce552116f31272a56d699f7c6cc91cdf.zip
dmesg: implement backwardly compatible --raw for /dev/kmsg
.. and if you really want raw data from /dev/kmsg then use dd(1) ;-) Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/dmesg.1')
-rw-r--r--sys-utils/dmesg.115
1 files changed, 13 insertions, 2 deletions
diff --git a/sys-utils/dmesg.1 b/sys-utils/dmesg.1
index ff149a9e3..c67cfa14a 100644
--- a/sys-utils/dmesg.1
+++ b/sys-utils/dmesg.1
@@ -98,12 +98,23 @@ will
print or clear the kernel ring buffer.
.IP "\fB\-r\fR, \fB\-\-raw\fR"
Print the raw message buffer, i.e., do not strip the log level prefixes.
+
+Note that the real raw format depends on method how
+.BR dmesg (1)
+reads kernel messages. The /dev/kmsg uses different format than
+.BR syslog (2) .
+For backward compatibility
+.BR dmesg (1)
+returns data always in
+.BR syslog (2)
+format. The real raw data from /dev/kmsg is possible to read for example by
+command 'dd if=/dev/kmsg iflag=nonblock'.
.IP "\fB\-S\fR, \fB\-\-syslog\fR"
Force to use
-.BR syslog(2)
+.BR syslog (2)
kernel interface to read kernel messages. The default is to use /dev/kmsg rather
than
-.BR syslog(2)
+.BR syslog (2)
since kernel 3.5.0.
.IP "\fB\-s\fR, \fB\-\-buffer-size \fIsize\fR
Use a buffer of