[PATCH] jffs2: change pr_fmt prefix to jffs2
Sascha Hauer
s.hauer at pengutronix.de
Wed Apr 10 02:23:30 PDT 2024
KBUILD_MODNAME expands to the filename which is not a good prefix for
messages. Change it to jffs2 to give the messages a more meaningful
prefix.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
fs/jffs2/build.c | 2 +-
fs/jffs2/compr.c | 2 +-
fs/jffs2/compr_rubin.c | 2 +-
fs/jffs2/compr_zlib.c | 2 +-
fs/jffs2/debug.c | 2 +-
fs/jffs2/dir.c | 2 +-
fs/jffs2/fs.c | 2 +-
fs/jffs2/malloc.c | 2 +-
fs/jffs2/nodelist.c | 2 +-
fs/jffs2/read.c | 2 +-
fs/jffs2/readinode.c | 2 +-
fs/jffs2/scan.c | 2 +-
fs/jffs2/super.c | 2 +-
13 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/fs/jffs2/build.c b/fs/jffs2/build.c
index d5757d100b..3871547b99 100644
--- a/fs/jffs2/build.c
+++ b/fs/jffs2/build.c
@@ -8,7 +8,7 @@
* Created by David Woodhouse <dwmw2 at infradead.org>
*/
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#define pr_fmt(fmt) "jffs2: " fmt
#include <common.h>
#include <linux/kernel.h>
#include <linux/sched.h>
diff --git a/fs/jffs2/compr.c b/fs/jffs2/compr.c
index 04b014199f..a056be051c 100644
--- a/fs/jffs2/compr.c
+++ b/fs/jffs2/compr.c
@@ -9,7 +9,7 @@
*
* Created by Arjan van de Ven <arjan at infradead.org>
*/
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#define pr_fmt(fmt) "jffs2: " fmt
#include <common.h>
#include "compr.h"
diff --git a/fs/jffs2/compr_rubin.c b/fs/jffs2/compr_rubin.c
index 91a500f4fb..913276d986 100644
--- a/fs/jffs2/compr_rubin.c
+++ b/fs/jffs2/compr_rubin.c
@@ -8,7 +8,7 @@
* Created by Arjan van de Ven <arjanv at redhat.com>
*/
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#define pr_fmt(fmt) "jffs2: " fmt
#include <linux/string.h>
#include <linux/types.h>
diff --git a/fs/jffs2/compr_zlib.c b/fs/jffs2/compr_zlib.c
index 2b7914f1f5..0580bab0de 100644
--- a/fs/jffs2/compr_zlib.c
+++ b/fs/jffs2/compr_zlib.c
@@ -7,7 +7,7 @@
*
* Created by David Woodhouse <dwmw2 at infradead.org>
*/
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#define pr_fmt(fmt) "jffs2: " fmt
#include <common.h>
#include <linux/kernel.h>
#include <linux/zlib.h>
diff --git a/fs/jffs2/debug.c b/fs/jffs2/debug.c
index edf8539762..4ac501e2de 100644
--- a/fs/jffs2/debug.c
+++ b/fs/jffs2/debug.c
@@ -8,7 +8,7 @@
* Created by David Woodhouse <dwmw2 at infradead.org>
*/
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#define pr_fmt(fmt) "jffs2: " fmt
#include <common.h>
#include <crc.h>
diff --git a/fs/jffs2/dir.c b/fs/jffs2/dir.c
index 34f8d141f2..94ef51f778 100644
--- a/fs/jffs2/dir.c
+++ b/fs/jffs2/dir.c
@@ -7,7 +7,7 @@
*
* Created by David Woodhouse <dwmw2 at infradead.org>
*/
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#define pr_fmt(fmt) "jffs2: " fmt
#include <common.h>
#include <linux/fs.h>
#include <linux/hash.h>
diff --git a/fs/jffs2/fs.c b/fs/jffs2/fs.c
index 6f2cbff6c9..fcce56c15f 100644
--- a/fs/jffs2/fs.c
+++ b/fs/jffs2/fs.c
@@ -7,7 +7,7 @@
*
* Created by David Woodhouse <dwmw2 at infradead.org>
*/
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#define pr_fmt(fmt) "jffs2: " fmt
#include <common.h>
#include <crc.h>
#include <driver.h>
diff --git a/fs/jffs2/malloc.c b/fs/jffs2/malloc.c
index 202191be94..e0e29fa648 100644
--- a/fs/jffs2/malloc.c
+++ b/fs/jffs2/malloc.c
@@ -7,7 +7,7 @@
* Created by David Woodhouse <dwmw2 at infradead.org>
*/
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#define pr_fmt(fmt) "jffs2: " fmt
#include <common.h>
#include <linux/kernel.h>
diff --git a/fs/jffs2/nodelist.c b/fs/jffs2/nodelist.c
index 94753e1995..debf10e751 100644
--- a/fs/jffs2/nodelist.c
+++ b/fs/jffs2/nodelist.c
@@ -7,7 +7,7 @@
* Created by David Woodhouse <dwmw2 at infradead.org>
*/
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#define pr_fmt(fmt) "jffs2: " fmt
#include <common.h>
#include <crc.h>
diff --git a/fs/jffs2/read.c b/fs/jffs2/read.c
index a1c3b9d47b..fffa5f60cb 100644
--- a/fs/jffs2/read.c
+++ b/fs/jffs2/read.c
@@ -7,7 +7,7 @@
* Created by David Woodhouse <dwmw2 at infradead.org>
*/
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#define pr_fmt(fmt) "jffs2: " fmt
#include <common.h>
#include <crc.h>
#include <linux/kernel.h>
diff --git a/fs/jffs2/readinode.c b/fs/jffs2/readinode.c
index aaf2619613..605130d60c 100644
--- a/fs/jffs2/readinode.c
+++ b/fs/jffs2/readinode.c
@@ -7,7 +7,7 @@
* Created by David Woodhouse <dwmw2 at infradead.org>
*/
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#define pr_fmt(fmt) "jffs2: " fmt
#include <common.h>
#include <crc.h>
diff --git a/fs/jffs2/scan.c b/fs/jffs2/scan.c
index 0d74a8f51f..e1e5120a28 100644
--- a/fs/jffs2/scan.c
+++ b/fs/jffs2/scan.c
@@ -7,7 +7,7 @@
* Created by David Woodhouse <dwmw2 at infradead.org>
*/
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#define pr_fmt(fmt) "jffs2: " fmt
#include <common.h>
#include <crc.h>
#include <linux/kernel.h>
diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c
index 37b3f328c6..d56cdfe132 100644
--- a/fs/jffs2/super.c
+++ b/fs/jffs2/super.c
@@ -7,7 +7,7 @@
*
* Created by David Woodhouse <dwmw2 at infradead.org>
*/
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#define pr_fmt(fmt) "jffs2: " fmt
#include <common.h>
#include <init.h>
#include <linux/slab.h>
--
2.39.2
More information about the barebox
mailing list