Skip to content

Commit e640cc3

Browse files
committed
xtensa: fix stack dump output
Use %pB in pr_cont format string instead of calling print_symbol separately. It turns [ 19.166249] Call Trace: [ 19.167265] [<a000e50a>] [ 19.167843] __warn+0x92/0xa0 [ 19.169656] [<a000e554>] [ 19.170059] warn_slowpath_fmt+0x3c/0x40 [ 19.171934] [<a02d5bd8>] back into [ 18.123240] Call Trace: [ 18.125039] [<a000e4f6>] __warn+0x92/0xa0 [ 18.126961] [<a000e540>] warn_slowpath_fmt+0x3c/0x40 Signed-off-by: Max Filippov <[email protected]>
1 parent 2b83878 commit e640cc3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

arch/xtensa/kernel/traps.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,8 @@ void show_regs(struct pt_regs * regs)
483483

484484
static int show_trace_cb(struct stackframe *frame, void *data)
485485
{
486-
if (kernel_text_address(frame->pc)) {
487-
pr_cont(" [<%08lx>]", frame->pc);
488-
print_symbol(" %s\n", frame->pc);
489-
}
486+
if (kernel_text_address(frame->pc))
487+
pr_cont(" [<%08lx>] %pB\n", frame->pc, (void *)frame->pc);
490488
return 0;
491489
}
492490

0 commit comments

Comments
 (0)