um: x86: print RIP with symbol
authorJohannes Berg <johannes.berg@intel.com>
Fri, 27 May 2022 07:22:16 +0000 (09:22 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 17 Jul 2022 21:15:21 +0000 (23:15 +0200)
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 <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/x86/um/sysrq_64.c

index 903ad91b624f29eabcb53faa7bc9a528e0af0129..ef1eb4f4f6126daf316c99e5a9a13e5bd1ccb4de 100644 (file)
@@ -19,8 +19,8 @@ void show_regs(struct pt_regs *regs)
        print_modules();
        printk(KERN_INFO "Pid: %d, comm: %.20s %s %s\n", task_pid_nr(current),
                current->comm, print_tainted(), init_utsname()->release);
-       printk(KERN_INFO "RIP: %04lx:[<%016lx>]\n", PT_REGS_CS(regs) & 0xffff,
-              PT_REGS_IP(regs));
+       printk(KERN_INFO "RIP: %04lx:%pS\n", PT_REGS_CS(regs) & 0xffff,
+              (void *)PT_REGS_IP(regs));
        printk(KERN_INFO "RSP: %016lx  EFLAGS: %08lx\n", PT_REGS_SP(regs),
               PT_REGS_EFLAGS(regs));
        printk(KERN_INFO "RAX: %016lx RBX: %016lx RCX: %016lx\n",