]> git.ipfire.org Git - thirdparty/util-linux.git/commit
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>
Tue, 18 Oct 2011 12:22:26 +0000 (14:22 +0200)
commit7a8e6f9ce6a5921cb9fbeda61007232d653e82ed
tree19268a2126ab471f2da89031abb073dcc049e0fb
parent04c36ce9d91b93c58c91bd6ad365f5cb91662cb3
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