summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
Diffstat (limited to 'samples')
-rw-r--r--samples/kprobes/jprobe_example.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/kprobes/jprobe_example.c b/samples/kprobes/jprobe_example.c
index c3108bb15789..e3c0a40909f7 100644
--- a/samples/kprobes/jprobe_example.c
+++ b/samples/kprobes/jprobe_example.c
@@ -48,10 +48,10 @@ static int __init jprobe_init(void)
48 48
49 ret = register_jprobe(&my_jprobe); 49 ret = register_jprobe(&my_jprobe);
50 if (ret < 0) { 50 if (ret < 0) {
51 printk(KERN_INFO "register_jprobe failed, returned %d\n", ret); 51 pr_err("register_jprobe failed, returned %d\n", ret);
52 return -1; 52 return -1;
53 } 53 }
54 printk(KERN_INFO "Planted jprobe at %p, handler addr %p\n", 54 pr_info("Planted jprobe at %p, handler addr %p\n",
55 my_jprobe.kp.addr, my_jprobe.entry); 55 my_jprobe.kp.addr, my_jprobe.entry);
56 return 0; 56 return 0;
57} 57}
@@ -59,7 +59,7 @@ static int __init jprobe_init(void)
59static void __exit jprobe_exit(void) 59static void __exit jprobe_exit(void)
60{ 60{
61 unregister_jprobe(&my_jprobe); 61 unregister_jprobe(&my_jprobe);
62 printk(KERN_INFO "jprobe at %p unregistered\n", my_jprobe.kp.addr); 62 pr_info("jprobe at %p unregistered\n", my_jprobe.kp.addr);
63} 63}
64 64
65module_init(jprobe_init) 65module_init(jprobe_init)