summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-05-03 14:10:51 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-05-03 15:10:01 +1000
commitd8e92b3e45a0b0b222e1ee5ace161b569acebd57 (patch)
treec4f19382e52605d0ba520e91edc4fbe04620c87c /src
parentdc7570f047d5e9be8cbec65672b4a2512c3811b3 (diff)
evdev: log the applied model flags in debug mode
Makes it a lot easier to figure out if the udev properties are set up correctly. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/evdev.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index afc4710c..bcd9c5bd 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1741,8 +1741,13 @@ evdev_read_model_flags(struct evdev_device *device)
while (m->property) {
if (!!udev_device_get_property_value(device->udev_device,
- m->property))
+ m->property)) {
+ log_debug(device->base.seat->libinput,
+ "%s: tagged as %s\n",
+ evdev_device_get_sysname(device),
+ m->property);
model_flags |= m->model;
+ }
m++;
}