diff options
| author | Vivek BalachandharTN <vivek.balachandhar@gmail.com> | 2025-12-02 03:31:20 +0000 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2025-12-08 23:14:29 -0800 |
| commit | c4b3133c6a2fc283cb3d34c64d40ed2fa254b608 (patch) | |
| tree | 029f46076ede0a446cf3bd27d8f5b26856925b99 /drivers/input/mouse | |
| parent | 70f62e52176df0f1f4684919546a6198d5e82529 (diff) | |
| download | linux-c4b3133c6a2fc283cb3d34c64d40ed2fa254b608.tar.gz linux-c4b3133c6a2fc283cb3d34c64d40ed2fa254b608.zip | |
Input: byd - use %*ph for Z packet dump
Replace the hand-rolled %02x formatting of the Z packet warning in the
BYD driver with the %*ph format specifier. %*ph is the preferred helper
for printing a buffer in hexadecimal and makes the logging clearer and
more consistent.
Signed-off-by: Vivek BalachandharTN <vivek.balachandhar@gmail.com>
Link: https://patch.msgid.link/20251202033120.2264474-1-vivek.balachandhar@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse')
| -rw-r--r-- | drivers/input/mouse/byd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/input/mouse/byd.c b/drivers/input/mouse/byd.c index 71aa23dd7d8d..7f85c7ab68c5 100644 --- a/drivers/input/mouse/byd.c +++ b/drivers/input/mouse/byd.c @@ -314,10 +314,8 @@ static psmouse_ret_t byd_process_byte(struct psmouse *psmouse) break; } default: - psmouse_warn(psmouse, - "Unrecognized Z: pkt = %02x %02x %02x %02x\n", - psmouse->packet[0], psmouse->packet[1], - psmouse->packet[2], psmouse->packet[3]); + psmouse_warn(psmouse, "Unrecognized Z: pkt = %*ph\n", + 4, psmouse->packet); return PSMOUSE_BAD_DATA; } |
