forked from Minki/linux
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>
This commit is contained in:
parent
43e23b6c0b
commit
d03ae4778b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user