touchpad: log the sysname of the device that looks like a bad clickpad
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 2 Jul 2014 23:53:35 +0000 (09:53 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 2 Jul 2014 23:53:59 +0000 (09:53 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad-buttons.c

index 2ac231c7bb9d212579864c4ba3f10647d4a7d550..b84198cea0cbf1a64ab3dbacf3b590bdab158a7e 100644 (file)
@@ -581,11 +581,13 @@ tp_init_buttons(struct tp_dispatch *tp,
            libevdev_has_event_code(device->evdev, EV_KEY, BTN_RIGHT)) {
                if (tp->buttons.is_clickpad)
                        log_bug_kernel(libinput,
-                                      "clickpad advertising right button\n");
+                                      "%s: clickpad advertising right button\n",
+                                      device->sysname);
        } else {
                if (!tp->buttons.is_clickpad)
                        log_bug_kernel(libinput,
-                                      "non clickpad without right button?\n");
+                                      "%s: non clickpad without right button?\n",
+                                      device->sysname);
        }
 
        absinfo_x = device->abs.absinfo_x;