tools: change name/seat/logical seat format string
authorPeter Hutterer <peter.hutterer@who-t.net>
Sun, 4 Jan 2015 22:40:35 +0000 (08:40 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 4 Jan 2015 22:57:14 +0000 (08:57 +1000)
Change the seat field widths to match the usual seat0/default. This compresses
the output a bit, we're printing too much already.

Also, one of my mice has >30 chars, it's annoying to look at. Fix this.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/event-debug.c

index da581c8..5750bca 100644 (file)
@@ -125,7 +125,7 @@ print_device_notify(struct libinput_event *ev)
        double w, h;
        uint32_t scroll_methods;
 
-       printf("%-30s   %s      %s",
+       printf("%-33s %5s %7s",
               libinput_device_get_name(dev),
               libinput_seat_get_physical_name(seat),
               libinput_seat_get_logical_name(seat));