Skip to content

Commit 5864614

Browse files
hcahcaVasily Gorbik
authored andcommitted
s390/traps: Use pr_emerg() instead of printk()
Use pr_emerg() instead of printk() in case of a stack overflow, providing the emergency printk level. Also slightly adjust the printed text for pr_emerg() and panic(). Reviewed-by: Sven Schnelle <[email protected]> Signed-off-by: Heiko Carstens <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent e9df614 commit 5864614

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/s390/kernel/traps.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,10 @@ void kernel_stack_overflow(struct pt_regs *regs)
271271
*/
272272
kmsan_unpoison_entry_regs(regs);
273273
bust_spinlocks(1);
274-
printk("Kernel stack overflow.\n");
274+
pr_emerg("Kernel stack overflow\n");
275275
show_regs(regs);
276276
bust_spinlocks(0);
277-
panic("Corrupt kernel stack, can't continue.");
277+
panic("Corrupt kernel stack, cannot continue");
278278
}
279279
NOKPROBE_SYMBOL(kernel_stack_overflow);
280280

0 commit comments

Comments
 (0)