From 60439711b69b893e84d5bab56de66f9433e68a30 Mon Sep 17 00:00:00 2001 From: Enrico Weigelt Date: Mon, 15 Jul 2019 16:57:33 +0200 Subject: leds: apu: add pr_fmt prefix for better log output 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 Acked-by: Pavel Machek Signed-off-by: Jacek Anaszewski --- drivers/leds/leds-apu.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/leds/leds-apu.c') diff --git a/drivers/leds/leds-apu.c b/drivers/leds/leds-apu.c index d794f49f9838..7fd557aceff6 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 #include #include -- cgit v1.2.3