Skip to content

Commit

Permalink
docs: correct documentation for %pK
Browse files Browse the repository at this point in the history
Current documentation indicates that %pK prints a leading '0x'. This is
not the case.

Correct documentation for printk specifier %pK.

Signed-off-by: Tobin C. Harding <[email protected]>
  • Loading branch information
tcharding committed Nov 29, 2017
1 parent 4fbd8d1 commit 553d8e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Documentation/printk-formats.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,12 @@ Examples::
printk("Faulted at %pS\n", (void *)regs->ip);
printk(" %s%pB\n", (reliable ? "" : "? "), (void *)*stack);


Kernel Pointers
===============

::

%pK 0x01234567 or 0x0123456789abcdef
%pK 01234567 or 0123456789abcdef

For printing kernel pointers which should be hidden from unprivileged
users. The behaviour of ``%pK`` depends on the ``kptr_restrict sysctl`` - see
Expand Down

0 comments on commit 553d8e8

Please sign in to comment.