Skip to content

Commit f9f62a8

Browse files
Alex ShiIngo Molnar
authored andcommitted
x86/dumpstack: Use uniform "Oops: " prefix for die() messages
panic() prints a uniform prompt: "Kernel panic - not syncing:", but die() messages don't have any of that, the message is the raw user-defined message with no prefix. There's companies that collect thousands of die() messages per week, but w/o a prompt in dmesg, it's hard to write scripts to collect and analize the reasons. Add a uniform "Oops:" prefix like other architectures. [ mingo: Rewrote changelog. ] Signed-off-by: Alex Shi <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: Linus Torvalds <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 4cece76 commit f9f62a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kernel/dumpstack.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,8 @@ static void __die_header(const char *str, struct pt_regs *regs, long err)
405405
pr = IS_ENABLED(CONFIG_PREEMPT_RT) ? " PREEMPT_RT" : " PREEMPT";
406406

407407
printk(KERN_DEFAULT
408-
"%s: %04lx [#%d]%s%s%s%s%s\n", str, err & 0xffff, ++die_counter,
409-
pr,
408+
"Oops: %s: %04lx [#%d]%s%s%s%s%s\n", str, err & 0xffff,
409+
++die_counter, pr,
410410
IS_ENABLED(CONFIG_SMP) ? " SMP" : "",
411411
debug_pagealloc_enabled() ? " DEBUG_PAGEALLOC" : "",
412412
IS_ENABLED(CONFIG_KASAN) ? " KASAN" : "",

0 commit comments

Comments
 (0)