summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobin C. Harding <me@tobin.cc>2017-11-22 18:55:24 -0500
committerTobin C. Harding <me@tobin.cc>2017-11-28 20:02:58 -0500
commit553d8e8b107159088cc4e2855a2bd9a358365e3f (patch)
tree0df437427f9239e2a69234a133999b76be7f4c03
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff)
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 <me@tobin.cc>
-rw-r--r--Documentation/printk-formats.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/Documentation/printk-formats.txt b/Documentation/printk-formats.txt
index 361789df51ec..71b62db7eca2 100644
--- a/Documentation/printk-formats.txt
+++ b/Documentation/printk-formats.txt
@@ -85,13 +85,12 @@ Examples::
85 printk("Faulted at %pS\n", (void *)regs->ip); 85 printk("Faulted at %pS\n", (void *)regs->ip);
86 printk(" %s%pB\n", (reliable ? "" : "? "), (void *)*stack); 86 printk(" %s%pB\n", (reliable ? "" : "? "), (void *)*stack);
87 87
88
89Kernel Pointers 88Kernel Pointers
90=============== 89===============
91 90
92:: 91::
93 92
94 %pK 0x01234567 or 0x0123456789abcdef 93 %pK 01234567 or 0123456789abcdef
95 94
96For printing kernel pointers which should be hidden from unprivileged 95For printing kernel pointers which should be hidden from unprivileged
97users. The behaviour of ``%pK`` depends on the ``kptr_restrict sysctl`` - see 96users. The behaviour of ``%pK`` depends on the ``kptr_restrict sysctl`` - see