diff options
author | 2014-06-04 16:11:31 -0700 | |
---|---|---|
committer | 2014-06-04 16:54:16 -0700 | |
commit | 85c87043023b7e5535f975bbee12a4f5399df520 (patch) | |
tree | dd1ad8eb2e43fa09bb06cfff67bd13a6016dc5a0 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | printk: ignore too long messages (diff) | |
download | linux-dev-85c87043023b7e5535f975bbee12a4f5399df520.tar.xz linux-dev-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 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions