diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-03 09:16:52 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-03 16:55:52 +0200 |
commit | d03ae4778b3b61fc329615c30972074ee3496b0a (patch) | |
tree | 6f5719832b140282d6e290d10c1551dcbe6e57a6 /fs/debugfs/inode.c | |
parent | 43e23b6c0b0151e308acbd6530bb80e2d2e53161 (diff) | |
download | linux-d03ae4778b3b61fc329615c30972074ee3496b0a.tar.gz linux-d03ae4778b3b61fc329615c30972074ee3496b0a.tar.bz2 linux-d03ae4778b3b61fc329615c30972074ee3496b0a.zip |
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>
Diffstat (limited to 'fs/debugfs/inode.c')
-rw-r--r-- | fs/debugfs/inode.c | 4 |
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 @@ * See ./Documentation/core-api/kernel-api.rst for more details. */ +#define pr_fmt(fmt) "debugfs: " fmt + #include <linux/module.h> #include <linux/fs.h> #include <linux/mount.h> @@ -286,7 +288,7 @@ static struct dentry *start_creating(const char *name, struct dentry *parent) struct dentry *dentry; int error; - pr_debug("debugfs: creating file '%s'\n",name); + pr_debug("creating file '%s'\n", name); if (IS_ERR(parent)) return parent; |