Skip to content

Commit 328b4ed

Browse files
committed
x86: don't hash faulting address in oops printout
Things like this will probably keep showing up for other architectures and other special cases. I actually thought we already used %lx for this, and that is indeed _historically_ the case, but we moved to %p when merging the 32-bit and 64-bit cases as a convenient way to get the formatting right (ie automatically picking "%08lx" vs "%016lx" based on register size). So just turn this %p into %px. Reported-by: Sergey Senozhatsky <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent b562c17 commit 328b4ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/mm/fault.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ show_fault_oops(struct pt_regs *regs, unsigned long error_code,
701701
else
702702
printk(KERN_CONT "paging request");
703703

704-
printk(KERN_CONT " at %p\n", (void *) address);
704+
printk(KERN_CONT " at %px\n", (void *) address);
705705
printk(KERN_ALERT "IP: %pS\n", (void *)regs->ip);
706706

707707
dump_pagetable(address);

0 commit comments

Comments
 (0)