fs/configfs: use pr_fmt
authorFabian Frederick <fabf@skynet.be>
Wed, 4 Jun 2014 23:05:59 +0000 (16:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:53:53 +0000 (16:53 -0700)
Add pr_fmt based on module name.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/configfs/configfs_internal.h
fs/configfs/dir.c
fs/configfs/inode.c
fs/configfs/mount.c

index b5f0a3b91f188ed36cfceabb4a3118de3f1d9d40..bd4a3c167091346b951cc5b86c1911f7372c920d 100644 (file)
  * configfs Copyright (C) 2005 Oracle.  All rights reserved.
  */
 
+#ifdef pr_fmt
+#undef pr_fmt
+#endif
+
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/slab.h>
 #include <linux/list.h>
 #include <linux/spinlock.h>
index 727d06ef348c41a13c7b63b855008b85c36a6871..668dcabc5695a3a153f5234cab0f759c7693af5c 100644 (file)
@@ -1699,7 +1699,7 @@ void configfs_unregister_subsystem(struct configfs_subsystem *subsys)
        struct dentry *root = dentry->d_sb->s_root;
 
        if (dentry->d_parent != root) {
-               pr_err("configfs: Tried to unregister non-subsystem!\n");
+               pr_err("Tried to unregister non-subsystem!\n");
                return;
        }
 
@@ -1709,7 +1709,7 @@ void configfs_unregister_subsystem(struct configfs_subsystem *subsys)
        mutex_lock(&configfs_symlink_mutex);
        spin_lock(&configfs_dirent_lock);
        if (configfs_detach_prep(dentry, NULL)) {
-               pr_err("configfs: Tried to unregister non-empty subsystem!\n");
+               pr_err("Tried to unregister non-empty subsystem!\n");
        }
        spin_unlock(&configfs_dirent_lock);
        mutex_unlock(&configfs_symlink_mutex);
index fbb30db0fce7073ab247474bb99584ce4196903a..5946ad98053fa0f2133f5baf51aa9951005513a8 100644 (file)
@@ -168,7 +168,7 @@ static void configfs_set_inode_lock_class(struct configfs_dirent *sd,
                         * In practice the maximum level of locking depth is
                         * already reached. Just inform about possible reasons.
                         */
-                       pr_info("configfs: Too many levels of inodes for the locking correctness validator.\n");
+                       pr_info("Too many levels of inodes for the locking correctness validator.\n");
                        pr_info("Spurious warnings may appear.\n");
                }
        }
index af08de0271fe46ee4042dc1a1716d7ad240483e9..f6c285833390164ba358d8d9e6fd20e10838a56e 100644 (file)
@@ -85,7 +85,7 @@ static int configfs_fill_super(struct super_block *sb, void *data, int silent)
                /* directory inodes start off with i_nlink == 2 (for "." entry) */
                inc_nlink(inode);
        } else {
-               pr_debug("configfs: could not get root inode\n");
+               pr_debug("could not get root inode\n");
                return -ENOMEM;
        }
 
@@ -155,7 +155,7 @@ static int __init configfs_init(void)
 
        return 0;
 out4:
-       pr_err("configfs: Unable to register filesystem!\n");
+       pr_err("Unable to register filesystem!\n");
        configfs_inode_exit();
 out3:
        kobject_put(config_kobj);