Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation: Mention why %p prints ptrval

When debugging recent kernels, people will see '(ptrval)' but there
isn't much information as to what that means. Briefly describe why it's
there.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Acked-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Joel Stanley and committed by
Jonathan Corbet
156383b1 bf02d491

+2 -2
+2 -2
Documentation/core-api/printk-formats.rst
··· 60 60 Pointers printed without a specifier extension (i.e unadorned %p) are 61 61 hashed to prevent leaking information about the kernel memory layout. This 62 62 has the added benefit of providing a unique identifier. On 64-bit machines 63 - the first 32 bits are zeroed. If you *really* want the address see %px 64 - below. 63 + the first 32 bits are zeroed. The kernel will print ``(ptrval)`` until it 64 + gathers enough entropy. If you *really* want the address see %px below. 65 65 66 66 Symbols/Function Pointers 67 67 -------------------------