Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: hgpk - use %*ph to dump small buffer

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Andy Shevchenko and committed by
Dmitry Torokhov
fb4f552e 8757145a

+3 -6
+3 -6
drivers/input/mouse/hgpk.c
··· 334 334 335 335 if (!valid) 336 336 psmouse_dbg(psmouse, 337 - "bad data, mode %d (%d) %02x %02x %02x %02x %02x %02x\n", 338 - priv->mode, pktcnt, 339 - psmouse->packet[0], psmouse->packet[1], 340 - psmouse->packet[2], psmouse->packet[3], 341 - psmouse->packet[4], psmouse->packet[5]); 337 + "bad data, mode %d (%d) %*ph\n", 338 + priv->mode, pktcnt, 6, psmouse->packet); 342 339 343 340 return valid; 344 341 } ··· 1027 1030 return -EIO; 1028 1031 } 1029 1032 1030 - psmouse_dbg(psmouse, "ID: %02x %02x %02x\n", param[0], param[1], param[2]); 1033 + psmouse_dbg(psmouse, "ID: %*ph\n", 3, param); 1031 1034 1032 1035 /* HGPK signature: 0x67, 0x00, 0x<model> */ 1033 1036 if (param[0] != 0x67 || param[1] != 0x00)