summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/dumpstack.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2018-10-09 12:32:56 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-10-10 07:37:20 +0200
commite494990e7b74c55862b8b19c28ce38628a282cef (patch)
treea23f223e2ce2df357d0c40f0a7dee570d0c581b9 /arch/s390/kernel/dumpstack.c
parent52a34b34d4ff9a61bc6da9740541d8f08a40438c (diff)
downloadlinux-stable-e494990e7b74c55862b8b19c28ce38628a282cef.tar.gz
linux-stable-e494990e7b74c55862b8b19c28ce38628a282cef.tar.bz2
linux-stable-e494990e7b74c55862b8b19c28ce38628a282cef.zip
s390/dumpstack: print psw mask and address again
With pointer obfuscation the output of show_registers() became quite useless: Krnl PSW : (____ptrval____) (____ptrval____) (__list_add_valid+0x98/0xa8) In order to print the psw mask and address use %px instead of %p. And the output looks again like this: Krnl PSW : 0404d00180000000 00000000007c0dd0 (__list_add_valid+0x98/0xa8) Reviewed-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/dumpstack.c')
-rw-r--r--arch/s390/kernel/dumpstack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/dumpstack.c b/arch/s390/kernel/dumpstack.c
index d4c88e119e1f..cb7f55bbe06e 100644
--- a/arch/s390/kernel/dumpstack.c
+++ b/arch/s390/kernel/dumpstack.c
@@ -124,7 +124,7 @@ void show_registers(struct pt_regs *regs)
char *mode;
mode = user_mode(regs) ? "User" : "Krnl";
- printk("%s PSW : %p %p", mode, (void *)regs->psw.mask, (void *)regs->psw.addr);
+ printk("%s PSW : %px %px", mode, (void *)regs->psw.mask, (void *)regs->psw.addr);
if (!user_mode(regs))
pr_cont(" (%pSR)", (void *)regs->psw.addr);
pr_cont("\n");