Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os 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>

+3 -1
+3 -1
fs/debugfs/inode.c
··· 10 10 * See ./Documentation/core-api/kernel-api.rst for more details. 11 11 */ 12 12 13 + #define pr_fmt(fmt) "debugfs: " fmt 14 + 13 15 #include <linux/module.h> 14 16 #include <linux/fs.h> 15 17 #include <linux/mount.h> ··· 288 286 struct dentry *dentry; 289 287 int error; 290 288 291 - pr_debug("debugfs: creating file '%s'\n",name); 289 + pr_debug("creating file '%s'\n", name); 292 290 293 291 if (IS_ERR(parent)) 294 292 return parent;