]> git.ipfire.org Git - thirdparty/util-linux.git/commit - sys-utils/dmesg.c
dmesg: fix for non-CONFIG_PRINTK_TIME kernels
authorKarel Zak <kzak@redhat.com>
Wed, 31 Aug 2011 10:28:39 +0000 (12:28 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 31 Aug 2011 10:36:02 +0000 (12:36 +0200)
commit22f69825778f992ff98ed100252bf5e00a15d9d1
tree2dc1b93493a5e09858d35896680fe1cbd3509dcf
parentcc69f339c13238a4c153e0f4805c59c4c1d01ddf
dmesg: fix for non-CONFIG_PRINTK_TIME kernels

 * dmesg(1) incorrectly assumes that lines like "<6>\n"
   are broken.

 * it's more robust to assume the end of the record is "\n<"

 * print \n for empty lines

Reported-by: "Gabor Z. Papp" <gzp@papp.hu>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/dmesg.c