* closed.
  */
 
+#define pr_fmt(fmt) "CUSE: " fmt
+
 #include <linux/fuse.h>
 #include <linux/cdev.h>
 #include <linux/device.h>
                return 0;
 
        if (end[-1] != '\0') {
-               printk(KERN_ERR "CUSE: info not properly terminated\n");
+               pr_err("info not properly terminated\n");
                return -EINVAL;
        }
 
                key = strstrip(key);
 
        if (!strlen(key)) {
-               printk(KERN_ERR "CUSE: zero length info key specified\n");
+               pr_err("zero length info key specified\n");
                return -EINVAL;
        }
 
                if (strcmp(key, "DEVNAME") == 0)
                        devinfo->name = val;
                else
-                       printk(KERN_WARNING "CUSE: unknown device info \"%s\"\n",
-                              key);
+                       pr_warn("unknown device info \"%s\"\n", key);
        }
 
        if (!devinfo->name || !strlen(devinfo->name)) {
-               printk(KERN_ERR "CUSE: DEVNAME unspecified\n");
+               pr_err("DEVNAME unspecified\n");
                return -EINVAL;
        }
 
        else
                rc = register_chrdev_region(devt, 1, devinfo.name);
        if (rc) {
-               printk(KERN_ERR "CUSE: failed to register chrdev region\n");
+               pr_err("failed to register chrdev region\n");
                goto err;
        }
 
 
               1 << PG_lru |
               1 << PG_active |
               1 << PG_reclaim))) {
-               printk(KERN_WARNING "fuse: trying to steal weird page\n");
-               printk(KERN_WARNING "  page=%p index=%li flags=%08lx, count=%i, mapcount=%i, mapping=%p\n", page, page->index, page->flags, page_count(page), page_mapcount(page), page->mapping);
+               pr_warn("trying to steal weird page\n");
+               pr_warn("  page=%p index=%li flags=%08lx, count=%i, mapcount=%i, mapping=%p\n", page, page->index, page->flags, page_count(page), page_mapcount(page), page->mapping);
                return 1;
        }
        return 0;
 
 #ifndef _FS_FUSE_I_H
 #define _FS_FUSE_I_H
 
+#ifndef pr_fmt
+# define pr_fmt(fmt) "fuse: " fmt
+#endif
+
 #include <linux/fuse.h>
 #include <linux/fs.h>
 #include <linux/mount.h>
 
 {
        int res;
 
-       printk(KERN_INFO "fuse init (API version %i.%i)\n",
-              FUSE_KERNEL_VERSION, FUSE_KERNEL_MINOR_VERSION);
+       pr_info("init (API version %i.%i)\n",
+               FUSE_KERNEL_VERSION, FUSE_KERNEL_MINOR_VERSION);
 
        INIT_LIST_HEAD(&fuse_conn_list);
        res = fuse_fs_init();
 
 static void __exit fuse_exit(void)
 {
-       printk(KERN_DEBUG "fuse exit\n");
+       pr_debug("exit\n");
 
        fuse_ctl_cleanup();
        fuse_sysfs_cleanup();