From: Emil Velikov Date: Tue, 1 Apr 2025 15:32:03 +0000 (+0100) Subject: testsuite: remove #define pr_fmt X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7cd518dd8ce19a30d9aebfa6cbcda22b184c69e7;p=thirdparty%2Fkmod.git testsuite: remove #define pr_fmt The kernel headers already provide a default which is sufficient for out needs. Inspired by a few new test modules which set it, although never call pr_warn() or friends. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/333 Signed-off-by: Lucas De Marchi --- diff --git a/testsuite/module-playground/mod-foo-a.c b/testsuite/module-playground/mod-foo-a.c index 4eeeb0b2..250b9be4 100644 --- a/testsuite/module-playground/mod-foo-a.c +++ b/testsuite/module-playground/mod-foo-a.c @@ -1,5 +1,3 @@ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include #include diff --git a/testsuite/module-playground/mod-foo-b.c b/testsuite/module-playground/mod-foo-b.c index 0c92b1b2..d7e60758 100644 --- a/testsuite/module-playground/mod-foo-b.c +++ b/testsuite/module-playground/mod-foo-b.c @@ -1,5 +1,3 @@ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include #include diff --git a/testsuite/module-playground/mod-foo-c.c b/testsuite/module-playground/mod-foo-c.c index a8917c8b..0ea891a2 100644 --- a/testsuite/module-playground/mod-foo-c.c +++ b/testsuite/module-playground/mod-foo-c.c @@ -1,5 +1,3 @@ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include #include diff --git a/testsuite/module-playground/mod-foo.c b/testsuite/module-playground/mod-foo.c index 81056089..4f607f47 100644 --- a/testsuite/module-playground/mod-foo.c +++ b/testsuite/module-playground/mod-foo.c @@ -1,5 +1,3 @@ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include #include diff --git a/testsuite/module-playground/mod-loop-a.c b/testsuite/module-playground/mod-loop-a.c index e5adb493..fe5a30aa 100644 --- a/testsuite/module-playground/mod-loop-a.c +++ b/testsuite/module-playground/mod-loop-a.c @@ -1,5 +1,3 @@ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include #include diff --git a/testsuite/module-playground/mod-loop-b.c b/testsuite/module-playground/mod-loop-b.c index 26232ea1..efc37b48 100644 --- a/testsuite/module-playground/mod-loop-b.c +++ b/testsuite/module-playground/mod-loop-b.c @@ -1,5 +1,3 @@ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include #include diff --git a/testsuite/module-playground/mod-loop-c.c b/testsuite/module-playground/mod-loop-c.c index 0b90f7f2..ee521a53 100644 --- a/testsuite/module-playground/mod-loop-c.c +++ b/testsuite/module-playground/mod-loop-c.c @@ -1,5 +1,3 @@ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include #include diff --git a/testsuite/module-playground/mod-loop-d.c b/testsuite/module-playground/mod-loop-d.c index 9b523055..f58f9457 100644 --- a/testsuite/module-playground/mod-loop-d.c +++ b/testsuite/module-playground/mod-loop-d.c @@ -1,5 +1,3 @@ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include #include diff --git a/testsuite/module-playground/mod-loop-e.c b/testsuite/module-playground/mod-loop-e.c index a65acb28..cb6b3cc3 100644 --- a/testsuite/module-playground/mod-loop-e.c +++ b/testsuite/module-playground/mod-loop-e.c @@ -1,5 +1,3 @@ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include #include diff --git a/testsuite/module-playground/mod-loop-f.c b/testsuite/module-playground/mod-loop-f.c index 0abb1611..396b4b97 100644 --- a/testsuite/module-playground/mod-loop-f.c +++ b/testsuite/module-playground/mod-loop-f.c @@ -1,5 +1,3 @@ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include #include diff --git a/testsuite/module-playground/mod-loop-g.c b/testsuite/module-playground/mod-loop-g.c index 0965d763..ee44824e 100644 --- a/testsuite/module-playground/mod-loop-g.c +++ b/testsuite/module-playground/mod-loop-g.c @@ -1,5 +1,3 @@ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include #include diff --git a/testsuite/module-playground/mod-loop-h.c b/testsuite/module-playground/mod-loop-h.c index 6f457e24..3f28b436 100644 --- a/testsuite/module-playground/mod-loop-h.c +++ b/testsuite/module-playground/mod-loop-h.c @@ -1,5 +1,3 @@ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include #include diff --git a/testsuite/module-playground/mod-loop-i.c b/testsuite/module-playground/mod-loop-i.c index 64562173..054c447b 100644 --- a/testsuite/module-playground/mod-loop-i.c +++ b/testsuite/module-playground/mod-loop-i.c @@ -1,5 +1,3 @@ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include #include diff --git a/testsuite/module-playground/mod-loop-j.c b/testsuite/module-playground/mod-loop-j.c index facc81f4..58e1021b 100644 --- a/testsuite/module-playground/mod-loop-j.c +++ b/testsuite/module-playground/mod-loop-j.c @@ -1,5 +1,3 @@ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include #include diff --git a/testsuite/module-playground/mod-loop-k.c b/testsuite/module-playground/mod-loop-k.c index 49386cc5..ec64915c 100644 --- a/testsuite/module-playground/mod-loop-k.c +++ b/testsuite/module-playground/mod-loop-k.c @@ -1,5 +1,3 @@ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include #include diff --git a/testsuite/module-playground/mod-softdep-a.c b/testsuite/module-playground/mod-softdep-a.c index 05abd887..ca206237 100644 --- a/testsuite/module-playground/mod-softdep-a.c +++ b/testsuite/module-playground/mod-softdep-a.c @@ -2,8 +2,6 @@ /* * Copyright © 2025 Intel Corporation */ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include @@ -14,4 +12,4 @@ static int __init softdep_init(void) module_init(softdep_init); MODULE_AUTHOR("Dan He "); -MODULE_LICENSE("LGPL"); \ No newline at end of file +MODULE_LICENSE("LGPL"); diff --git a/testsuite/module-playground/mod-softdep-b.c b/testsuite/module-playground/mod-softdep-b.c index 7527b68e..ca206237 100644 --- a/testsuite/module-playground/mod-softdep-b.c +++ b/testsuite/module-playground/mod-softdep-b.c @@ -2,8 +2,6 @@ /* * Copyright © 2025 Intel Corporation */ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include diff --git a/testsuite/module-playground/mod-weakdep.c b/testsuite/module-playground/mod-weakdep.c index 7eca7cf9..7940e583 100644 --- a/testsuite/module-playground/mod-weakdep.c +++ b/testsuite/module-playground/mod-weakdep.c @@ -1,5 +1,3 @@ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include