summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-03 03:16:52 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-03 10:55:52 -0400
commitd03ae4778b3b61fc329615c30972074ee3496b0a (patch)
tree6f5719832b140282d6e290d10c1551dcbe6e57a6
parent43e23b6c0b0151e308acbd6530bb80e2d2e53161 (diff)
debugfs: provide pr_fmt() macro
Use a common "debugfs: " prefix for all pr_* calls in a single place. Cc: Mark Brown <broonie@kernel.org> Reviewed-by: Takashi Iwai <tiwai@suse.de> Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/20190703071653.2799-1-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--fs/debugfs/inode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index c3638ac81cb6..7f43c8acfcbf 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -10,6 +10,8 @@
10 * See ./Documentation/core-api/kernel-api.rst for more details. 10 * See ./Documentation/core-api/kernel-api.rst for more details.
11 */ 11 */
12 12
13#define pr_fmt(fmt) "debugfs: " fmt
14
13#include <linux/module.h> 15#include <linux/module.h>
14#include <linux/fs.h> 16#include <linux/fs.h>
15#include <linux/mount.h> 17#include <linux/mount.h>
@@ -286,7 +288,7 @@ static struct dentry *start_creating(const char *name, struct dentry *parent)
286 struct dentry *dentry; 288 struct dentry *dentry;
287 int error; 289 int error;
288 290
289 pr_debug("debugfs: creating file '%s'\n",name); 291 pr_debug("creating file '%s'\n", name);
290 292
291 if (IS_ERR(parent)) 293 if (IS_ERR(parent))
292 return parent; 294 return parent;