lkml.org 
[lkml]   [2009]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 24/31] x86: MCE: Don't print backtrace on machine checks with DEBUG_BUGVERBOSE
    Date
    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


    \
     
     \ /
      Last update: 2009-05-27 02:25    [W:0.032 / U:65.992 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site