Skip to contentSkip to conversation

kallsyms: let print_ip_sym() print raw addresses

PATCH Applied Huacai Chen 1 participant 1 message Dec 29, 2017 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kallsyms: let print_ip_sym() print raw addresses

print_ip_sym() is mostly used for debugging, so I think it should print the raw addresses.

---
 include/linux/kallsyms.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/kallsyms.h +1 -1
index bd118a6..e502db8 100644
@@ -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*/
Signature · 1 line
2.7.0