diff options
author | Tobin C. Harding <me@tobin.cc> | 2017-11-23 10:59:45 +1100 |
---|---|---|
committer | Tobin C. Harding <me@tobin.cc> | 2017-11-29 12:13:14 +1100 |
commit | 7b1924a1d930eb27fc79c4e4e2a6c1c970623e68 (patch) | |
tree | cdd958371ba49a69d64aae5df68ac0f181ba945d /Documentation/kernel-doc-nano-HOWTO.txt | |
parent | ad67b74d2469d9b82aaa572d76474c95bc484d57 (diff) | |
download | linux-7b1924a1d930eb27fc79c4e4e2a6c1c970623e68.tar.bz2 |
vsprintf: add printk specifier %px
printk specifier %p now hashes all addresses before printing. Sometimes
we need to see the actual unmodified address. This can be achieved using
%lx but then we face the risk that if in future we want to change the
way the Kernel handles printing of pointers we will have to grep through
the already existent 50 000 %lx call sites. Let's add specifier %px as a
clear, opt-in, way to print a pointer and maintain some level of
isolation from all the other hex integer output within the Kernel.
Add printk specifier %px to print the actual unmodified address.
Signed-off-by: Tobin C. Harding <me@tobin.cc>
Diffstat (limited to 'Documentation/kernel-doc-nano-HOWTO.txt')
0 files changed, 0 insertions, 0 deletions