diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-04 19:05:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 19:53:53 -0400 |
commit | 1d88aa441f25811a55c0ed688add108c0a45613e (patch) | |
tree | 6982d2fe21ebe8e960db34d90911bdb602a42502 /fs/configfs | |
parent | c6686931335757c2b348fc9a74ff564d8bd10f0a (diff) |
fs/configfs: use pr_fmt
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>
Diffstat (limited to 'fs/configfs')
-rw-r--r-- | fs/configfs/configfs_internal.h | 6 | ||||
-rw-r--r-- | fs/configfs/dir.c | 4 | ||||
-rw-r--r-- | fs/configfs/inode.c | 2 | ||||
-rw-r--r-- | fs/configfs/mount.c | 4 |
4 files changed, 11 insertions, 5 deletions
diff --git a/fs/configfs/configfs_internal.h b/fs/configfs/configfs_internal.h index b5f0a3b91f18..bd4a3c167091 100644 --- a/fs/configfs/configfs_internal.h +++ b/fs/configfs/configfs_internal.h | |||
@@ -24,6 +24,12 @@ | |||
24 | * configfs Copyright (C) 2005 Oracle. All rights reserved. | 24 | * configfs Copyright (C) 2005 Oracle. All rights reserved. |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #ifdef pr_fmt | ||
28 | #undef pr_fmt | ||
29 | #endif | ||
30 | |||
31 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
32 | |||
27 | #include <linux/slab.h> | 33 | #include <linux/slab.h> |
28 | #include <linux/list.h> | 34 | #include <linux/list.h> |
29 | #include <linux/spinlock.h> | 35 | #include <linux/spinlock.h> |
diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c index 727d06ef348c..668dcabc5695 100644 --- a/fs/configfs/dir.c +++ b/fs/configfs/dir.c | |||
@@ -1699,7 +1699,7 @@ void configfs_unregister_subsystem(struct configfs_subsystem *subsys) | |||
1699 | struct dentry *root = dentry->d_sb->s_root; | 1699 | struct dentry *root = dentry->d_sb->s_root; |
1700 | 1700 | ||
1701 | if (dentry->d_parent != root) { | 1701 | if (dentry->d_parent != root) { |
1702 | pr_err("configfs: Tried to unregister non-subsystem!\n"); | 1702 | pr_err("Tried to unregister non-subsystem!\n"); |
1703 | return; | 1703 | return; |
1704 | } | 1704 | } |
1705 | 1705 | ||
@@ -1709,7 +1709,7 @@ void configfs_unregister_subsystem(struct configfs_subsystem *subsys) | |||
1709 | mutex_lock(&configfs_symlink_mutex); | 1709 | mutex_lock(&configfs_symlink_mutex); |
1710 | spin_lock(&configfs_dirent_lock); | 1710 | spin_lock(&configfs_dirent_lock); |
1711 | if (configfs_detach_prep(dentry, NULL)) { | 1711 | if (configfs_detach_prep(dentry, NULL)) { |
1712 | pr_err("configfs: Tried to unregister non-empty subsystem!\n"); | 1712 | pr_err("Tried to unregister non-empty subsystem!\n"); |
1713 | } | 1713 | } |
1714 | spin_unlock(&configfs_dirent_lock); | 1714 | spin_unlock(&configfs_dirent_lock); |
1715 | mutex_unlock(&configfs_symlink_mutex); | 1715 | mutex_unlock(&configfs_symlink_mutex); |
diff --git a/fs/configfs/inode.c b/fs/configfs/inode.c index fbb30db0fce7..5946ad98053f 100644 --- a/fs/configfs/inode.c +++ b/fs/configfs/inode.c | |||
@@ -168,7 +168,7 @@ static void configfs_set_inode_lock_class(struct configfs_dirent *sd, | |||
168 | * In practice the maximum level of locking depth is | 168 | * In practice the maximum level of locking depth is |
169 | * already reached. Just inform about possible reasons. | 169 | * already reached. Just inform about possible reasons. |
170 | */ | 170 | */ |
171 | pr_info("configfs: Too many levels of inodes for the locking correctness validator.\n"); | 171 | pr_info("Too many levels of inodes for the locking correctness validator.\n"); |
172 | pr_info("Spurious warnings may appear.\n"); | 172 | pr_info("Spurious warnings may appear.\n"); |
173 | } | 173 | } |
174 | } | 174 | } |
diff --git a/fs/configfs/mount.c b/fs/configfs/mount.c index af08de0271fe..f6c285833390 100644 --- a/fs/configfs/mount.c +++ b/fs/configfs/mount.c | |||
@@ -85,7 +85,7 @@ static int configfs_fill_super(struct super_block *sb, void *data, int silent) | |||
85 | /* directory inodes start off with i_nlink == 2 (for "." entry) */ | 85 | /* directory inodes start off with i_nlink == 2 (for "." entry) */ |
86 | inc_nlink(inode); | 86 | inc_nlink(inode); |
87 | } else { | 87 | } else { |
88 | pr_debug("configfs: could not get root inode\n"); | 88 | pr_debug("could not get root inode\n"); |
89 | return -ENOMEM; | 89 | return -ENOMEM; |
90 | } | 90 | } |
91 | 91 | ||
@@ -155,7 +155,7 @@ static int __init configfs_init(void) | |||
155 | 155 | ||
156 | return 0; | 156 | return 0; |
157 | out4: | 157 | out4: |
158 | pr_err("configfs: Unable to register filesystem!\n"); | 158 | pr_err("Unable to register filesystem!\n"); |
159 | configfs_inode_exit(); | 159 | configfs_inode_exit(); |
160 | out3: | 160 | out3: |
161 | kobject_put(config_kobj); | 161 | kobject_put(config_kobj); |