From: Anton Blanchard Date: Wed, 26 May 2010 21:44:24 +0000 (-0700) Subject: panic: call console_verbose() in panic X-Git-Tag: upstream/snapshot3+hdmi~14180 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b530fc18324602e1ecb70cd280c2194b2656a5e;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git panic: call console_verbose() in panic Most distros turn the console verbosity down and that means a backtrace after a panic never makes it to the console. I assume we haven't seen this because a panic is often preceeded by an oops which will have called console_verbose. There are however a lot of places we call panic directly, and they are broken. Use console_verbose like we do in the oops path to ensure a directly called panic will print a backtrace. Signed-off-by: Anton Blanchard Acked-by: Greg Kroah-Hartman Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/panic.c b/kernel/panic.c index dbe13db..3b16cd9 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -87,6 +87,7 @@ NORET_TYPE void panic(const char * fmt, ...) */ preempt_disable(); + console_verbose(); bust_spinlocks(1); va_start(args, fmt); vsnprintf(buf, sizeof(buf), fmt, args);