Messages in this thread Patch in this message | | | From | "Enrico Weigelt, metux IT consult" <> | Subject | [PATCH 6/6] leds: apu: add pr_fmt prefix for better log output | Date | Mon, 15 Jul 2019 16:57:33 +0200 |
| |
From: Enrico Weigelt <info@metux.net>
Define pr_fmt() macro for prefixing the module name to all pr_*() outputs, in order to increase log message clarity.
Signed-off-by: Enrico Weigelt <info@metux.net> --- drivers/leds/leds-apu.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/leds/leds-apu.c b/drivers/leds/leds-apu.c index 892fea7..fd8a41d 100644 --- a/drivers/leds/leds-apu.c +++ b/drivers/leds/leds-apu.c @@ -31,6 +31,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include <linux/dmi.h> #include <linux/err.h> #include <linux/init.h> -- 1.9.1
| |