Skip to content

Commit 553d8e8

Browse files
committed
docs: correct documentation for %pK
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]>
1 parent 4fbd8d1 commit 553d8e8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Documentation/printk-formats.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,12 @@ Examples::
8585
printk("Faulted at %pS\n", (void *)regs->ip);
8686
printk(" %s%pB\n", (reliable ? "" : "? "), (void *)*stack);
8787

88-
8988
Kernel Pointers
9089
===============
9190

9291
::
9392

94-
%pK 0x01234567 or 0x0123456789abcdef
93+
%pK 01234567 or 0123456789abcdef
9594

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

0 commit comments

Comments
 (0)