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 <svens@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
parent
e9df614dad
commit
5864614daf
|
|
@ -271,10 +271,10 @@ void kernel_stack_overflow(struct pt_regs *regs)
|
|||
*/
|
||||
kmsan_unpoison_entry_regs(regs);
|
||||
bust_spinlocks(1);
|
||||
printk("Kernel stack overflow.\n");
|
||||
pr_emerg("Kernel stack overflow\n");
|
||||
show_regs(regs);
|
||||
bust_spinlocks(0);
|
||||
panic("Corrupt kernel stack, can't continue.");
|
||||
panic("Corrupt kernel stack, cannot continue");
|
||||
}
|
||||
NOKPROBE_SYMBOL(kernel_stack_overflow);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue