[PATCH 6/6] leds: apu: add pr_fmt prefix for better log output

From: Enrico Weigelt, metux IT consult
Date: Mon Jul 15 2019 - 10:58:13 EST


From: Enrico Weigelt <info@xxxxxxxxx>

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@xxxxxxxxx>
---
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