summaryrefslogtreecommitdiff
path: root/drivers/leds
diff options
context:
space:
mode:
authorEnrico Weigelt <info@metux.net>2019-07-15 17:57:33 +0300
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2019-07-22 22:57:35 +0300
commit60439711b69b893e84d5bab56de66f9433e68a30 (patch)
treeed9ade36f130a27c0ec72a7780bc2ccf4c0a5f32 /drivers/leds
parent93562049a62c5519b3787a428cdd3cfa7fc9e7d4 (diff)
downloadlinux-60439711b69b893e84d5bab56de66f9433e68a30.tar.xz
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 <info@metux.net> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-apu.c2
1 files changed, 2 insertions, 0 deletions
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 <linux/dmi.h>
#include <linux/err.h>
#include <linux/init.h>