mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 17:30:28 +01:00
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:
parent
3178a3ae75
commit
b7c324ba32
2 changed files with 6 additions and 2 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue