summaryrefslogtreecommitdiff
path: root/tools/libinput-list-devices.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2017-02-20 07:24:47 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2017-02-20 12:11:26 +1000
commit5515ecafec7da70269bf2699f9ed9f340675f2dd (patch)
tree7d67b056c522d6853f4a7244e3108eb389c28413 /tools/libinput-list-devices.c
parent25f9c1381b31e5fe3d886d06a1447fd1ebf36d0a (diff)
downloadlibinput-5515ecafec7da70269bf2699f9ed9f340675f2dd.tar.gz
tools: size without decimals is good enough
Sub-mm precision isn't needed for libinput-list-devices' size field. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools/libinput-list-devices.c')
-rw-r--r--tools/libinput-list-devices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libinput-list-devices.c b/tools/libinput-list-devices.c
index e2023880..3d863926 100644
--- a/tools/libinput-list-devices.c
+++ b/tools/libinput-list-devices.c
@@ -290,7 +290,7 @@ print_device_notify(struct libinput_event *ev)
libinput_seat_get_logical_name(seat));
if (libinput_device_get_size(dev, &w, &h) == 0)
- printf("Size: %.2fx%.2fmm\n", w, h);
+ printf("Size: %.fx%.fmm\n", w, h);
printf("Capabilities: ");
if (libinput_device_has_capability(dev,
LIBINPUT_DEVICE_CAP_KEYBOARD))