Skip to contentSkip to conversation

platform/x86: panasonic-laptop: add pr_fmt

PATCH New Alex Yeo 1 participant 1 message Oct 27

Subsystems (2)
lore
Share & tools
lore

Alex Yeo

author
#0 lore raw

PATCH 1/1 platform/x86: panasonic-laptop: add pr_fmt

Kernel messages originating from panasonic-laptop on dmesg do not specify its origin.

ex:
[ +6.009811] Unknown hotkey event: 0x0030
[ +0.229942] Unknown hotkey event: 0x0031

Add pr_fmt so that messages from this module now show up as:

[ +0.209860] panasonic_laptop: Unknown hotkey event: 0x0031 [ +0.160149] panasonic_laptop: Unknown hotkey event: 0x0030

---
 drivers/platform/x86/panasonic-laptop.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/platform/x86/panasonic-laptop.c +2 -0
index 19d194ff37ca..080e306f796c 100644
@@ -119,6 +119,8 @@
  *		- v0.1  start from toshiba_acpi driver written by John Belmonte
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/acpi.h>
 #include <linux/backlight.h>
 #include <linux/bits.h>
Signature · 1 line
2.55.0