s390/kprobes: Fix %p uses in error messages

"Linux Kernel Mailing List" <[email protected]>
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/0e1647b39025517e5bfdfd45d6033ab7a1c9c8b9
Commit:     0e1647b39025517e5bfdfd45d6033ab7a1c9c8b9
Parent:     df2f815a7df7edb5335a3bdeee6a8f9f6f9c35c4
Refname:    refs/heads/master
Author:     Masami Hiramatsu <[email protected]>
AuthorDate: Thu Jan 25 14:30:32 2018 +0900
Committer:  Martin Schwidefsky <[email protected]>
CommitDate: Fri Feb 2 10:47:15 2018 +0100

    s390/kprobes: Fix %p uses in error messages
    
    Remove %p because the kprobe will be dumped in dump_kprobe().
    
    Signed-off-by: Masami Hiramatsu <[email protected]>
    Signed-off-by: Heiko Carstens <[email protected]>
    Signed-off-by: Martin Schwidefsky <[email protected]>
---
 arch/s390/kernel/kprobes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/s390/kernel/kprobes.c b/arch/s390/kernel/kprobes.c
index 943d13e90c98..60f60afa645c 100644
--- a/arch/s390/kernel/kprobes.c
+++ b/arch/s390/kernel/kprobes.c
@@ -281,7 +281,7 @@ static void kprobe_reenter_check(struct kprobe_ctlblk *kcb, struct kprobe *p)
 		 * is a BUG. The code path resides in the .kprobes.text
 		 * section and is executed with interrupts disabled.
 		 */
-		printk(KERN_EMERG "Invalid kprobe detected at %p.\n", p->addr);
+		pr_err("Invalid kprobe detected.\n");
 		dump_kprobe(p);
 		BUG();
 	}
--
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.