]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Documentation: Mention why %p prints ptrval
authorJoel Stanley <joel@jms.id.au>
Thu, 22 Mar 2018 05:23:36 +0000 (15:53 +1030)
committerJonathan Corbet <corbet@lwn.net>
Fri, 23 Mar 2018 18:42:18 +0000 (12:42 -0600)
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>
Documentation/core-api/printk-formats.rst

index 934559b3c130f6910abd2e587cc8f4dd78e4bf72..eb30efdd2e7896166e453ef47d8b0ad4e4c39c77 100644 (file)
@@ -60,8 +60,8 @@ Plain Pointers
 Pointers printed without a specifier extension (i.e unadorned %p) are
 hashed to prevent leaking information about the kernel memory layout. This
 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
-below.
+the first 32 bits are zeroed. The kernel will print ``(ptrval)`` until it
+gathers enough entropy. If you *really* want the address see %px below.
 
 Symbols/Function Pointers
 -------------------------