From: Tobin C. Harding Date: Wed, 22 Nov 2017 23:55:24 +0000 (+1100) Subject: docs: correct documentation for %pK X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=553d8e8b107159088cc4e2855a2bd9a358365e3f;p=linux.git 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 --- diff --git a/Documentation/printk-formats.txt b/Documentation/printk-formats.txt index 361789df51ecf..71b62db7eca28 100644 --- a/Documentation/printk-formats.txt +++ b/Documentation/printk-formats.txt @@ -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