Skip to content

Commit e062356

Browse files
jmberg-intelrichardweinberger
authored andcommitted
um: x86: print RIP with symbol
This is not only nicer to read by default, but also lets decode_stacktrace.sh work on it, rather than removing it. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent 99ac1e2 commit e062356

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/um/sysrq_64.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ void show_regs(struct pt_regs *regs)
1919
print_modules();
2020
printk(KERN_INFO "Pid: %d, comm: %.20s %s %s\n", task_pid_nr(current),
2121
current->comm, print_tainted(), init_utsname()->release);
22-
printk(KERN_INFO "RIP: %04lx:[<%016lx>]\n", PT_REGS_CS(regs) & 0xffff,
23-
PT_REGS_IP(regs));
22+
printk(KERN_INFO "RIP: %04lx:%pS\n", PT_REGS_CS(regs) & 0xffff,
23+
(void *)PT_REGS_IP(regs));
2424
printk(KERN_INFO "RSP: %016lx EFLAGS: %08lx\n", PT_REGS_SP(regs),
2525
PT_REGS_EFLAGS(regs));
2626
printk(KERN_INFO "RAX: %016lx RBX: %016lx RCX: %016lx\n",

0 commit comments

Comments
 (0)