From: Geert Uytterhoeven Date: Wed, 17 Jun 2020 14:36:31 +0000 (+0200) Subject: sh: fault: Fix duplicate printing of "PC:" X-Git-Tag: baikal/mips/sdk5.9~12876^2~26 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=d36de5ff7ae3bf1a749c0906732145915fba0a66;p=kernel.git sh: fault: Fix duplicate printing of "PC:" Somewhere along the patch handling path, both the old "printk(KERN_ALERT ....)" and the new "pr_alert(...)" were retained, leading to the duplicate printing of "PC:". Drop the old one. Fixes: 42601b854defca2f ("sh: fault: modernize printing of kernel messages") Signed-off-by: Geert Uytterhoeven Signed-off-by: Rich Felker --- diff --git a/arch/sh/mm/fault.c b/arch/sh/mm/fault.c index fbe1f2fe9a8c8..acd1c75994983 100644 --- a/arch/sh/mm/fault.c +++ b/arch/sh/mm/fault.c @@ -208,7 +208,6 @@ show_fault_oops(struct pt_regs *regs, unsigned long address) if (!oops_may_print()) return; - printk(KERN_ALERT "PC:"); pr_alert("BUG: unable to handle kernel %s at %08lx\n", address < PAGE_SIZE ? "NULL pointer dereference" : "paging request",