[PATCH] kallsyms: let print_ip_sym() print raw addresses
From: Huacai Chen
Date: Thu Dec 28 2017 - 22:48:56 EST
print_ip_sym() is mostly used for debugging, so I think it should print
the raw addresses.
Signed-off-by: Huacai Chen <chenhc@xxxxxxxxxx>
---
include/linux/kallsyms.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/kallsyms.h b/include/linux/kallsyms.h
index bd118a6..e502db8 100644
--- a/include/linux/kallsyms.h
+++ b/include/linux/kallsyms.h
@@ -131,7 +131,7 @@ static inline void print_symbol(const char *fmt, unsigned long addr)
static inline void print_ip_sym(unsigned long ip)
{
- printk("[<%p>] %pS\n", (void *) ip, (void *) ip);
+ printk("[<%px>] %pS\n", (void *) ip, (void *) ip);
}
#endif /*_LINUX_KALLSYMS_H*/
--
2.7.0