Files
linux/kernel
Petr Mladek 85c8704302 printk: split message size computation
We will want to recompute the message size when shrinking too long
messages.  Let's put the code into separate function.

The side effect of setting "pad_len" is not nice but it is worth removing
the code duplication.  Note that I will probably have one more usage for
this function when handling messages safe way in NMI context.

This patch does not change the existing behavior.

Signed-off-by: Petr Mladek <pmladek@suse.cz>
Cc: Jan Kara <jack@suse.cz>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Kay Sievers <kay@vrfy.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-06-04 16:54:16 -07:00
..
2013-11-13 12:09:34 +09:00
2014-06-03 23:10:15 +02:00
2014-06-04 16:54:14 -07:00
2014-06-04 16:54:01 -07:00
2014-04-18 14:20:48 +02:00
2013-12-04 14:09:46 +10:30
2013-09-11 15:58:27 -07:00
2014-04-30 13:46:17 +02:00