| From | Andi Kleen <> | Subject | [PATCH 24/31] x86: MCE: Don't print backtrace on machine checks with DEBUG_BUGVERBOSE | Date | Wed, 27 May 2009 01:54:26 +0200 |
| |
From: Andi Kleen <ak@linux.intel.com>
CONFIG_DEBUG_BUGVERBOSE prints backtraces on panics, but we don't want that on machine checks because these are not kernel bugs. So disable it here.
Signed-off-by: Andi Kleen <ak@linux.intel.com> --- kernel/panic.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/kernel/panic.c b/kernel/panic.c index 984b3ec..fa3b607 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -71,7 +71,8 @@ NORET_TYPE void panic(const char * fmt, ...) va_end(args); printk(KERN_EMERG "Kernel panic - not syncing: %s\n",buf); #ifdef CONFIG_DEBUG_BUGVERBOSE - dump_stack(); + if (!strstr(fmt, "Machine check")) + dump_stack(); #endif /* -- 1.6.0.2
|