diff options
author | 2017-11-29 10:30:13 -0800 | |
---|---|---|
committer | 2017-11-29 10:30:13 -0800 | |
commit | 668533dc0764b30c9dd2baf3ca800156f688326b (patch) | |
tree | 5d8d4f06b7f2278e9e91f2e03dec4890a6bc736a /include | |
parent | Merge tag 'printk-hash-pointer-4.15-rc2' of git://github.com/tcharding/linux (diff) | |
download | linux-668533dc0764b30c9dd2baf3ca800156f688326b.tar.gz linux-668533dc0764b30c9dd2baf3ca800156f688326b.tar.bz2 linux-668533dc0764b30c9dd2baf3ca800156f688326b.zip |
kallsyms: take advantage of the new '%px' format
The conditional kallsym hex printing used a special fixed-width '%lx'
output (KALLSYM_FMT) in preparation for the hashing of %p, but that
series ended up adding a %px specifier to help with the conversions.
Use it, and avoid the "print pointer as an unsigned long" code.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/kallsyms.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/kallsyms.h b/include/linux/kallsyms.h index 708f337d780b..bd118a6c60cb 100644 --- a/include/linux/kallsyms.h +++ b/include/linux/kallsyms.h @@ -14,12 +14,6 @@ #define KSYM_SYMBOL_LEN (sizeof("%s+%#lx/%#lx [%s]") + (KSYM_NAME_LEN - 1) + \ 2*(BITS_PER_LONG*3/10) + (MODULE_NAME_LEN - 1) + 1) -#ifndef CONFIG_64BIT -# define KALLSYM_FMT "%08lx" -#else -# define KALLSYM_FMT "%016lx" -#endif - struct module; #ifdef CONFIG_KALLSYMS |