]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - samples/kprobes/jprobe_example.c
Merge tag 'drm-intel-next-fixes-2016-08-05' of git://anongit.freedesktop.org/drm...
[karo-tx-linux.git] / samples / kprobes / jprobe_example.c
index c3108bb1578996dd30c11d0f8c515f04c41a5d03..e3c0a40909f7a3fee445b1e192ad02c9f3e713e0 100644 (file)
@@ -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.kp.addr, my_jprobe.entry);
        return 0;
 }
@@ -59,7 +59,7 @@ static int __init jprobe_init(void)
 static void __exit jprobe_exit(void)
 {
        unregister_jprobe(&my_jprobe);
-       printk(KERN_INFO "jprobe at %p unregistered\n", my_jprobe.kp.addr);
+       pr_info("jprobe at %p unregistered\n", my_jprobe.kp.addr);
 }
 
 module_init(jprobe_init)