* [PATCH] platform/x86: panasonic-laptop: add pr_fmt
@ 2026-10-27 2:09 Alex Yeo
0 siblings, 0 replies; only message in thread
From: Alex Yeo @ 2026-10-27 2:09 UTC (permalink / raw)
To: platform-driver-x86
Cc: alexyeo362, Kenneth Chan, Hans de Goede, Ilpo Järvinen,
linux-kernel
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
Signed-off-by: Alex Yeo <alexyeo362@gmail.com>
---
drivers/platform/x86/panasonic-laptop.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/platform/x86/panasonic-laptop.c b/drivers/platform/x86/panasonic-laptop.c
index 19d194ff37ca..080e306f796c 100644
--- a/drivers/platform/x86/panasonic-laptop.c
+++ b/drivers/platform/x86/panasonic-laptop.c
@@ -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>
--
2.55.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-27 2:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-27 2:09 [PATCH] platform/x86: panasonic-laptop: add pr_fmt Alex Yeo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®