Commit 156383b1 authored by Joel Stanley's avatar Joel Stanley Committed by Jonathan Corbet

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: default avatarJoel Stanley <joel@jms.id.au>
Acked-by: default avatarTobin C. Harding <me@tobin.cc>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent bf02d491
...@@ -60,8 +60,8 @@ Plain Pointers ...@@ -60,8 +60,8 @@ Plain Pointers
Pointers printed without a specifier extension (i.e unadorned %p) are Pointers printed without a specifier extension (i.e unadorned %p) are
hashed to prevent leaking information about the kernel memory layout. This hashed to prevent leaking information about the kernel memory layout. This
has the added benefit of providing a unique identifier. On 64-bit machines has the added benefit of providing a unique identifier. On 64-bit machines
the first 32 bits are zeroed. If you *really* want the address see %px the first 32 bits are zeroed. The kernel will print ``(ptrval)`` until it
below. gathers enough entropy. If you *really* want the address see %px below.
Symbols/Function Pointers Symbols/Function Pointers
------------------------- -------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment