kallsyms: let print_ip_sym() print raw addresses

"Linux Kernel Mailing List" <[email protected]>
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/ca3a45697be3ad59aa8f8f83d0e277b49f4b5680
Commit:     ca3a45697be3ad59aa8f8f83d0e277b49f4b5680
Parent:     60c9d92f887f4606d363fece7a36c92664dc64c6
Refname:    refs/heads/master
Author:     Huacai Chen <[email protected]>
AuthorDate: Tue Feb 6 15:39:18 2018 -0800
Committer:  Linus Torvalds <[email protected]>
CommitDate: Tue Feb 6 18:32:45 2018 -0800

    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.
    
    Link: http://lkml.kernel.org/r/[email protected]
    Signed-off-by: Huacai Chen <[email protected]>
    Cc: Kees Cook <[email protected]>
    Cc: Fuxin Zhang <[email protected]>
    Cc: "Tobin C. Harding" <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Linus Torvalds <[email protected]>
---
 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 d79d1e7486bd..657a83b943f0 100644
--- a/include/linux/kallsyms.h
+++ b/include/linux/kallsyms.h
@@ -167,7 +167,7 @@ static inline int kallsyms_show_value(void)
 
 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*/
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.