From b7c324ba32922c1b6279b0240993a0099685cc60 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 18 Nov 2014 11:33:51 +1000 Subject: [PATCH] tools: print the device name on DEVICE_ADDED Signed-off-by: Peter Hutterer Reviewed-by: Hans de Goede --- tools/event-debug.c | 3 ++- tools/event-gui.c | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/event-debug.c b/tools/event-debug.c index 00882bfa..1d9c8a06 100644 --- a/tools/event-debug.c +++ b/tools/event-debug.c @@ -259,7 +259,8 @@ print_device_notify(struct libinput_event *ev) double w, h; uint32_t scroll_modes; - printf("%s %s", + printf("%-30s %s %s", + libinput_device_get_name(dev), libinput_seat_get_physical_name(seat), libinput_seat_get_logical_name(seat)); diff --git a/tools/event-gui.c b/tools/event-gui.c index 142990d5..b6d21b66 100644 --- a/tools/event-gui.c +++ b/tools/event-gui.c @@ -272,7 +272,10 @@ handle_event_device_notify(struct libinput_event *ev) else type = "removed"; - msg("%s %s\n", libinput_device_get_sysname(dev), type); + msg("%s %-30s %s\n", + libinput_device_get_sysname(dev), + libinput_device_get_name(dev), + type); if (libinput_device_config_tap_get_finger_count(dev) > 0) { enum libinput_config_status status;