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

Configure Feed

Select the types of activity you want to include in your feed.

Input: elantech - fix debug dump of the current packet

The use of mixed psmouse_printk() and printk creates 2 lines in the log,
while the use of %*ph solves everything.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Benjamin Tissoires and committed by
Dmitry Torokhov
014420fe d205a218

+2 -6
+2 -6
drivers/input/mouse/elantech.c
··· 222 222 */ 223 223 static void elantech_packet_dump(struct psmouse *psmouse) 224 224 { 225 - int i; 226 - 227 - psmouse_printk(KERN_DEBUG, psmouse, "PS/2 packet ["); 228 - for (i = 0; i < psmouse->pktsize; i++) 229 - printk("%s0x%02x ", i ? ", " : " ", psmouse->packet[i]); 230 - printk("]\n"); 225 + psmouse_printk(KERN_DEBUG, psmouse, "PS/2 packet [%*ph]\n", 226 + psmouse->pktsize, psmouse->packet); 231 227 } 232 228 233 229 /*