Commit 468b8895 authored by Huang Shijie's avatar Huang Shijie Committed by Linus Torvalds

samples/jprobe: convert the printk to pr_info/pr_err

We prefer to use the pr_* to print out the log now, this patch converts
the printk to pr_info.  In the error path, use the pr_err to replace the

Link: default avatarHuang Shijie <>
Cc: Petr Mladek <>
Cc: Steve Capper <>
Cc: Ananth N Mavinakayanahalli <>
Cc: Anil S Keshavamurthy <>
Cc: Masami Hiramatsu <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent e708c148
......@@ -48,10 +48,10 @@ static int __init jprobe_init(void)
ret = register_jprobe(&my_jprobe);
if (ret < 0) {
printk(KERN_INFO "register_jprobe failed, returned %d\n", ret);
pr_err("register_jprobe failed, returned %d\n", ret);
return -1;
printk(KERN_INFO "Planted jprobe at %p, handler addr %p\n",
pr_info("Planted jprobe at %p, handler addr %p\n",, my_jprobe.entry);
return 0;
......@@ -59,7 +59,7 @@ static int __init jprobe_init(void)
static void __exit jprobe_exit(void)
printk(KERN_INFO "jprobe at %p unregistered\n",;
pr_info("jprobe at %p unregistered\n",;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment