Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 553d8e8b authored by Tobin C. Harding's avatar Tobin C. Harding
Browse files

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: default avatarTobin C. Harding <me@tobin.cc>
parent 4fbd8d19
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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