net/atm: Convert printk to pr_<level>
[deliverable/linux.git] / net / atm / mpoa_proc.c
index 4990541ef5da4ca7d0b2325bd39ebb4ffbf3c290..0603ab478cf5b203a7a761f4de76373f58ed14b7 100644 (file)
@@ -1,3 +1,4 @@
+#define pr_fmt(fmt) KBUILD_MODNAME ":%s: " fmt, __func__
 
 #ifdef CONFIG_PROC_FS
 #include <linux/errno.h>
@@ -278,10 +279,9 @@ int mpc_proc_init(void)
 
        p = proc_create(STAT_FILE_NAME, 0, atm_proc_root, &mpc_file_operations);
        if (!p) {
-               printk(KERN_ERR "Unable to initialize /proc/atm/%s\n", STAT_FILE_NAME);
+               pr_err("Unable to initialize /proc/atm/%s\n", STAT_FILE_NAME);
                return -ENOMEM;
        }
-       p->owner = THIS_MODULE;
        return 0;
 }
 
This page took 0.023864 seconds and 5 git commands to generate.