touchpad: print the device name on error

A little bit easier to recognize.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2014-11-20 14:26:10 +10:00
parent 84a1a3e081
commit 67ac4501a7

View file

@ -565,12 +565,12 @@ tp_init_buttons(struct tp_dispatch *tp,
if (tp->buttons.is_clickpad)
log_bug_kernel(libinput,
"%s: clickpad advertising right button\n",
device->sysname);
device->devname);
} else {
if (!tp->buttons.is_clickpad)
log_bug_kernel(libinput,
"%s: non clickpad without right button?\n",
device->sysname);
device->devname);
}
absinfo_x = device->abs.absinfo_x;