]> git.karo-electronics.de Git - karo-tx-linux.git/commit
printk: shrink too long messages
authorPetr Mladek <pmladek@suse.cz>
Thu, 22 May 2014 00:43:33 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:33 +0000 (10:43 +1000)
commit6f83a1a8d7e0a9e71f3ee1641a965aede0ee4c6c
treec0a1e251285603beb5036987658008a4531db0f9
parent0d8db5627bead4d29b1af1434c2a72ba3f9cc16a
printk: shrink too long messages

We might want to print at least part of too long messages and add some
warning for debugging purpose.

The question is how long the shrunken message should be.  If we use the
whole buffer, it might get rotated too soon.  Let's try to use only 1/4 of
the buffer for now.

Also shrink the whole dictionary.  We do not want to parse it or break it
in the middle of some pair of values.  It would not cause any real harm
but still.

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>
kernel/printk/printk.c