evdev: log device's DPI setting if any
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 23 Jun 2015 02:41:57 +0000 (12:41 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 25 Jun 2015 22:18:58 +0000 (08:18 +1000)
Makes debugging things easier.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev.c

index 22df622..9e2909c 100644 (file)
@@ -1497,6 +1497,10 @@ evdev_read_dpi_prop(struct evdev_device *device)
                                            DEFAULT_MOUSE_DPI);
                        dpi = DEFAULT_MOUSE_DPI;
                }
+               log_info(libinput,
+                        "Device '%s' set to %d DPI\n",
+                        device->devname,
+                        dpi);
        }
 
        return dpi;