kmsg - export "continuation record" flag to /dev/kmsg
authorKay Sievers <kay@vrfy.org>
Tue, 17 Jul 2012 01:35:30 +0000 (18:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jul 2012 01:35:30 +0000 (18:35 -0700)
commitd39f3d77c9b1fe7cc33a14beb4a4849af0a4ac22
treebf3a4fd34aa850a5f30f966dfd98a40a424f6b9a
parent96efedf1491cdf0616e5e4fff0711cebf20f69c7
kmsg - export "continuation record" flag to /dev/kmsg

In some cases we are forced to store individual records for a continuation
line print.

Export a flag to allow the external re-construction of the line. The flag
allows us to apply a similar logic externally which is used internally when
the console, /proc/kmsg or the syslog() output is printed.

  $ cat /dev/kmsg
  4,165,0,-;Free swap  = 0kB
  4,166,0,-;Total swap = 0kB
  6,167,0,c;[
  4,168,0,+;0
  4,169,0,+;1
  4,170,0,+;2
  4,171,0,+;3
  4,172,0,+;]
  6,173,0,-;[0 1 2 3 ]
  6,174,0,-;Console: colour VGA+ 80x25
  6,175,0,-;console [tty0] enabled

Signed-off-by: Kay Sievers <kay@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/dev-kmsg
kernel/printk.c