]> git.baikalelectronics.ru Git - kernel.git/commitdiff
sh: fault: Fix duplicate printing of "PC:"
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 17 Jun 2020 14:36:31 +0000 (16:36 +0200)
committerRich Felker <dalias@libc.org>
Sat, 15 Aug 2020 02:05:07 +0000 (22:05 -0400)
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: dca15b4990d701bf ("sh: fault: modernize printing of kernel messages")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/mm/fault.c

index fbe1f2fe9a8c8f558b75dd41f1bf028a83d9a623..acd1c7599498382563b1f5ef24e5a3d0c09a48f8 100644 (file)
@@ -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",