diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-02-20 07:24:47 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-02-20 12:11:26 +1000 |
commit | 5515ecafec7da70269bf2699f9ed9f340675f2dd (patch) | |
tree | 7d67b056c522d6853f4a7244e3108eb389c28413 /tools | |
parent | 25f9c1381b31e5fe3d886d06a1447fd1ebf36d0a (diff) |
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')
-rw-r--r-- | tools/libinput-list-devices.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libinput-list-devices.c b/tools/libinput-list-devices.c index e202388..3d86392 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)) |