platform/x86: panasonic-laptop: add pr_fmt
Subsystems (2)
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
Signed-off-by Alex Yeo <[email protected]>
--- drivers/platform/x86/panasonic-laptop.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/platform/x86/panasonic-laptop.c +2 -0
@@ -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