Input: ALPS - print small buffers via %*ph

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
Andy Shevchenko 2012-10-30 00:24:41 -07:00 committed by Dmitry Torokhov
parent 53279f36dc
commit 3b11292381
1 changed files with 4 additions and 6 deletions

View File

@ -767,9 +767,8 @@ static psmouse_ret_t alps_handle_interleaved_ps2(struct psmouse *psmouse)
psmouse->packet[5]) & 0x80) || psmouse->packet[5]) & 0x80) ||
(!alps_is_valid_first_byte(priv->i, psmouse->packet[6]))) { (!alps_is_valid_first_byte(priv->i, psmouse->packet[6]))) {
psmouse_dbg(psmouse, psmouse_dbg(psmouse,
"refusing packet %x %x %x %x (suspected interleaved ps/2)\n", "refusing packet %4ph (suspected interleaved ps/2)\n",
psmouse->packet[3], psmouse->packet[4], psmouse->packet + 3);
psmouse->packet[5], psmouse->packet[6]);
return PSMOUSE_BAD_DATA; return PSMOUSE_BAD_DATA;
} }
@ -831,9 +830,8 @@ static void alps_flush_packet(unsigned long data)
psmouse->packet[4] | psmouse->packet[4] |
psmouse->packet[5]) & 0x80) { psmouse->packet[5]) & 0x80) {
psmouse_dbg(psmouse, psmouse_dbg(psmouse,
"refusing packet %x %x %x (suspected interleaved ps/2)\n", "refusing packet %3ph (suspected interleaved ps/2)\n",
psmouse->packet[3], psmouse->packet[4], psmouse->packet + 3);
psmouse->packet[5]);
} else { } else {
alps_process_packet(psmouse); alps_process_packet(psmouse);
} }