mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 10:44:14 +08:00
m68k: Use new printk() extension %pS to print symbols
This changes the oops and backtrace code to use the new `%pS' printk() extension to print out symbols rather than manually calling print_symbol. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
5b1d5f953b
commit
8fbbae6573
@ -883,8 +883,7 @@ void show_trace(unsigned long *stack)
|
|||||||
if (i % 5 == 0)
|
if (i % 5 == 0)
|
||||||
printk("\n ");
|
printk("\n ");
|
||||||
#endif
|
#endif
|
||||||
printk(" [<%08lx>]", addr);
|
printk(" [<%08lx>] %pS\n", addr, (void *)addr);
|
||||||
print_symbol(" %s\n", addr);
|
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -900,10 +899,8 @@ void show_registers(struct pt_regs *regs)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
print_modules();
|
print_modules();
|
||||||
printk("PC: [<%08lx>]",regs->pc);
|
printk("PC: [<%08lx>] %pS\n", regs->pc, (void *)regs->pc);
|
||||||
print_symbol(" %s", regs->pc);
|
printk("SR: %04x SP: %p a2: %08lx\n", regs->sr, regs, regs->a2);
|
||||||
printk("\nSR: %04x SP: %p a2: %08lx\n",
|
|
||||||
regs->sr, regs, regs->a2);
|
|
||||||
printk("d0: %08lx d1: %08lx d2: %08lx d3: %08lx\n",
|
printk("d0: %08lx d1: %08lx d2: %08lx d3: %08lx\n",
|
||||||
regs->d0, regs->d1, regs->d2, regs->d3);
|
regs->d0, regs->d1, regs->d2, regs->d3);
|
||||||
printk("d4: %08lx d5: %08lx a0: %08lx a1: %08lx\n",
|
printk("d4: %08lx d5: %08lx a0: %08lx a1: %08lx\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user