]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Remove spurious printk level from segfault message
authorRoland Dreier <roland@digitalvampire.org>
Sat, 11 Jul 2009 07:10:04 +0000 (00:10 -0700)
committerIngo Molnar <mingo@elte.hu>
Sat, 11 Jul 2009 07:56:19 +0000 (09:56 +0200)
commit233ee9e463a04f556c9a9c352cbf16cc23eae2ab
tree91a764712d687269d463ec095c5ba5041fb8844b
parent589ee5c56812808bb8dc86ff85bbae6840d655f5
x86: Remove spurious printk level from segfault message

Since commit dc135363 ("printk: clean up handling of log-levels
and newlines"), the kernel logs segfaults like:

    <6>gnome-power-man[24509]: segfault at 20 ip 00007f9d4950465a sp 00007fffbb50fc70 error 4 in libgobject-2.0.so.0.2103.0[7f9d494f7000+45000]

with the extra "<6>" being KERN_INFO.  This happens because the
printk in show_signal_msg() started with KERN_CONT and then
used "%s" to pass in the real level; and KERN_CONT is no longer
an empty string, and printk only pays attention to the level at
the very beginning of the format string.

Therefore, remove the KERN_CONT from this printk, since it is
now actively causing problems (and never really made any
sense).

Signed-off-by: Roland Dreier <roland@digitalvampire.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
LKML-Reference: <874otjitkj.fsf@shaolin.home.digitalvampire.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/fault.c