]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kmsg - properly print over-long continuation lines
authorKay Sievers <kay@vrfy.org>
Tue, 17 Jul 2012 01:35:29 +0000 (18:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:22:54 +0000 (08:22 -0700)
commit8901aca058c3eeb25f0325f491ef4119c507eb2b
tree20e6700113a0848ae720842f6203f47eef2bd261
parentca118568299f5e4ec8ad2dcd6776038fb16e6ad3
kmsg - properly print over-long continuation lines

commit 70498253186586e5dca7bc3ebd3415203b059fbc upstream.

Reserve PREFIX_MAX bytes in the LOG_LINE_MAX line when buffering a
continuation line, to be able to properly prefix the LOG_LINE_MAX
line with the syslog prefix and timestamp when printing it.

Reported-By: Dave Jones <davej@redhat.com>
Signed-off-by: Kay Sievers <kay@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/printk.c