Skip to content

Commit 845d915

Browse files
geertuRich Felker
authored andcommitted
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: eaabf98 ("sh: fault: modernize printing of kernel messages") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Rich Felker <dalias@libc.org>
1 parent c64bbe7 commit 845d915

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎arch/sh/mm/fault.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ show_fault_oops(struct pt_regs *regs, unsigned long address)
208208
if (!oops_may_print())
209209
return;
210210

211-
printk(KERN_ALERT "PC:");
212211
pr_alert("BUG: unable to handle kernel %s at %08lx\n",
213212
address < PAGE_SIZE ? "NULL pointer dereference"
214213
: "paging request",

0 commit comments

Comments
 (0)