Commit d03ae477 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

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: default avatarTakashi Iwai <tiwai@suse.de>
Reviewed-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20190703071653.2799-1-gregkh@linuxfoundation.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 43e23b6c
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
* See ./Documentation/core-api/kernel-api.rst for more details. * See ./Documentation/core-api/kernel-api.rst for more details.
*/ */
#define pr_fmt(fmt) "debugfs: " fmt
#include <linux/module.h> #include <linux/module.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/mount.h> #include <linux/mount.h>
...@@ -286,7 +288,7 @@ static struct dentry *start_creating(const char *name, struct dentry *parent) ...@@ -286,7 +288,7 @@ static struct dentry *start_creating(const char *name, struct dentry *parent)
struct dentry *dentry; struct dentry *dentry;
int error; int error;
pr_debug("debugfs: creating file '%s'\n",name); pr_debug("creating file '%s'\n", name);
if (IS_ERR(parent)) if (IS_ERR(parent))
return parent; return parent;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment