x86/kernel: Fix output of show_stack_log_lvl()
authorAdrien Schildknecht <adrien+dev@schischi.me>
Fri, 20 Feb 2015 02:34:21 +0000 (03:34 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 23 Feb 2015 17:34:42 +0000 (18:34 +0100)
commit1fc7f61c3e604f6bf778b5c6afc2715d79ab7f36
tree22846e0dfc2a9922d8967cef5c50bbaf4a3d2832
parentc517d838eb7d07bbe9507871fab3931deccff539
x86/kernel: Fix output of show_stack_log_lvl()

show_stack_log_lvl() does not set the log level after a new line, the
following messages printed with pr_cont() are thus assigned to the
default log level.

This patch prepends the log level to the next message following a new
line.

print_trace_address() uses printk(log_lvl). Using printk() with just
a log level is ignored and thus has no effect on the next pr_cont().
We need to prepend the log level directly into the message.

Signed-off-by: Adrien Schildknecht <adrien+dev@schischi.me>
Acked-by: Ingo Molnar <mingo@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1424399661-20327-1-git-send-email-adrien+dev@schischi.me
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/kernel/dumpstack.c
arch/x86/kernel/dumpstack_32.c
arch/x86/kernel/dumpstack_64.c