Commit 5864614d authored by Heiko Carstens's avatar Heiko Carstens Committed by Vasily Gorbik
Browse files

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: default avatarSven Schnelle <svens@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent e9df614d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);