tools: print the device name on DEVICE_ADDED

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
Peter Hutterer 2014-11-18 11:33:51 +10:00
parent 3178a3ae75
commit b7c324ba32
2 changed files with 6 additions and 2 deletions

View file

@ -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));

View file

@ -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;