From 5515ecafec7da70269bf2699f9ed9f340675f2dd Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 20 Feb 2017 07:24:47 +1000 Subject: tools: size without decimals is good enough Sub-mm precision isn't needed for libinput-list-devices' size field. Signed-off-by: Peter Hutterer --- tools/libinput-list-devices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3