diff options
author | Petr Mladek <pmladek@suse.cz> | 2014-06-04 16:11:31 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 16:54:16 -0700 |
commit | 85c87043023b7e5535f975bbee12a4f5399df520 (patch) | |
tree | dd1ad8eb2e43fa09bb06cfff67bd13a6016dc5a0 /firmware/whiteheat.HEX | |
parent | f40e4b9f70d48eb08f443642283fdd9d05b27c6d (diff) | |
download | linux-85c87043023b7e5535f975bbee12a4f5399df520.tar.gz linux-85c87043023b7e5535f975bbee12a4f5399df520.tar.bz2 linux-85c87043023b7e5535f975bbee12a4f5399df520.zip |
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>
Diffstat (limited to 'firmware/whiteheat.HEX')
0 files changed, 0 insertions, 0 deletions