Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: eaabf98b0932a540 ("sh: fault: modernize printing of kernel messages")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rich Felker <dalias@libc.org>

authored by

Geert Uytterhoeven and committed by
Rich Felker
845d9156 c64bbe70

-1
-1
arch/sh/mm/fault.c
··· 208 208 if (!oops_may_print()) 209 209 return; 210 210 211 - printk(KERN_ALERT "PC:"); 212 211 pr_alert("BUG: unable to handle kernel %s at %08lx\n", 213 212 address < PAGE_SIZE ? "NULL pointer dereference" 214 213 : "paging request",