linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] debugfs: provide pr_fmt() macro
@ 2019-07-03  7:16 Greg Kroah-Hartman
  2019-07-03  7:16 ` [PATCH 2/2] debugfs: log errors when something goes wrong Greg Kroah-Hartman
  2019-07-03  9:09 ` [PATCH 1/2] debugfs: provide pr_fmt() macro Rafael J. Wysocki
  0 siblings, 2 replies; 9+ messages in thread
From: Greg Kroah-Hartman @ 2019-07-03  7:16 UTC (permalink / raw)
  To: Mark Brown, Takashi Iwai
  Cc: linux-kernel, Greg Kroah-Hartman, Rafael J. Wysocki

Use a common "debugfs: " prefix for all pr_* calls in a single place.

Cc: Mark Brown <broonie@kernel.org>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 fs/debugfs/inode.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index acef14ad53db..f04c8475d9a1 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -9,6 +9,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>
@@ -285,7 +287,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;
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-07-03 14:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-03  7:16 [PATCH 1/2] debugfs: provide pr_fmt() macro Greg Kroah-Hartman
2019-07-03  7:16 ` [PATCH 2/2] debugfs: log errors when something goes wrong Greg Kroah-Hartman
2019-07-03  9:10   ` Rafael J. Wysocki
2019-07-03  9:32     ` Greg Kroah-Hartman
2019-07-03  9:35       ` Takashi Iwai
2019-07-03 14:53         ` Greg Kroah-Hartman
2019-07-03  9:37       ` Rafael J. Wysocki
2019-07-03 11:43   ` Mark Brown
2019-07-03  9:09 ` [PATCH 1/2] debugfs: provide pr_fmt() macro Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).