[PATCH 24/31] x86: MCE: Don't print backtrace on machine checks with DEBUG_BUGVERBOSE

Andi Kleen
2009-05-27T00:00:57Z

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