]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
Input: ALPS - print small buffers via %*ph
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 30 Oct 2012 07:24:41 +0000 (00:24 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 30 Oct 2012 07:47:04 +0000 (00:47 -0700)
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/alps.c

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