printk: factor out message formatting from devkmsg_read()
authorTejun Heo <[email protected]>
Thu, 25 Jun 2015 22:01:27 +0000 (15:01 -0700)
committerLinus Torvalds <[email protected]>
Fri, 26 Jun 2015 00:00:38 +0000 (17:00 -0700)
commit0a295e67ec19d59bdb146e0b60ac9659104f2215
tree7f8cc61eb252920fdffe24e129708b25bd680269
parentd43ff430f434d862db59582c0f1f02382a678036
printk: factor out message formatting from devkmsg_read()

The extended message formatting used for /dev/kmsg will be used implement
extended consoles.  Factor out msg_print_ext_header() and
msg_print_ext_body() from devkmsg_read().

This is pure restructuring.

Signed-off-by: Tejun Heo <[email protected]>
Cc: David Miller <[email protected]>
Cc: Kay Sievers <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Cc: Tetsuo Handa <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/printk/printk.c