* [PATCH] kallsyms: let print_ip_sym() print raw addresses
@ 2017-12-29 3:49 Huacai Chen
0 siblings, 0 replies; only message in thread
From: Huacai Chen @ 2017-12-29 3:49 UTC (permalink / raw)
To: Andrew Morton; +Cc: Fuxin Zhang, linux-mm, linux-kernel, Huacai Chen
print_ip_sym() is mostly used for debugging, so I think it should print
the raw addresses.
Signed-off-by: Huacai Chen <chenhc@lemote.com>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-12-29 3:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-29 3:49 [PATCH] kallsyms: let print_ip_sym() print raw addresses Huacai Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®