Skip to content

Commit f9f62a8

Browse files
Alex Shiingomolnar
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 <alexs@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: https://lore.kernel.org/r/20240327024419.471433-1-alexs@kernel.org
1 parent 4cece76 commit f9f62a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)