diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2012-09-13 00:49:26 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-09-13 00:57:13 -0400 |
commit | fb4f552e895cec29934d94a99cbd1f1f00448a88 (patch) | |
tree | 20e3645d1b7e006cafeb342347718cdb1ffaae8e | |
parent | 8757145af0cc7d51dc4d491c9a2248ece50b9932 (diff) |
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>
-rw-r--r-- | drivers/input/mouse/hgpk.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/input/mouse/hgpk.c b/drivers/input/mouse/hgpk.c index 575f880727fe..62be888e83d0 100644 --- a/drivers/input/mouse/hgpk.c +++ b/drivers/input/mouse/hgpk.c | |||
@@ -334,11 +334,8 @@ static bool hgpk_is_byte_valid(struct psmouse *psmouse, unsigned char *packet) | |||
334 | 334 | ||
335 | if (!valid) | 335 | if (!valid) |
336 | psmouse_dbg(psmouse, | 336 | psmouse_dbg(psmouse, |
337 | "bad data, mode %d (%d) %02x %02x %02x %02x %02x %02x\n", | 337 | "bad data, mode %d (%d) %*ph\n", |
338 | priv->mode, pktcnt, | 338 | priv->mode, pktcnt, 6, psmouse->packet); |
339 | psmouse->packet[0], psmouse->packet[1], | ||
340 | psmouse->packet[2], psmouse->packet[3], | ||
341 | psmouse->packet[4], psmouse->packet[5]); | ||
342 | 339 | ||
343 | return valid; | 340 | return valid; |
344 | } | 341 | } |
@@ -1030,7 +1027,7 @@ static enum hgpk_model_t hgpk_get_model(struct psmouse *psmouse) | |||
1030 | return -EIO; | 1027 | return -EIO; |
1031 | } | 1028 | } |
1032 | 1029 | ||
1033 | psmouse_dbg(psmouse, "ID: %02x %02x %02x\n", param[0], param[1], param[2]); | 1030 | psmouse_dbg(psmouse, "ID: %*ph\n", 3, param); |
1034 | 1031 | ||
1035 | /* HGPK signature: 0x67, 0x00, 0x<model> */ | 1032 | /* HGPK signature: 0x67, 0x00, 0x<model> */ |
1036 | if (param[0] != 0x67 || param[1] != 0x00) | 1033 | if (param[0] != 0x67 || param[1] != 0x00) |