mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 09:20:29 +01:00
evdev: move the 'device removed' message to the evdev backend
Preparation work for standardizing log messages better Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
67a7026b74
commit
2d500deac8
2 changed files with 5 additions and 4 deletions
|
|
@ -3444,6 +3444,11 @@ evdev_device_remove(struct evdev_device *device)
|
|||
{
|
||||
struct libinput_device *dev;
|
||||
|
||||
log_info(evdev_libinput_context(device),
|
||||
"input device %s, %s removed\n",
|
||||
device->devname,
|
||||
udev_device_get_devnode(device->udev_device));
|
||||
|
||||
list_for_each(dev, &device->base.seat->devices_list, link) {
|
||||
struct evdev_device *d = evdev_device(dev);
|
||||
if (dev == &device->base)
|
||||
|
|
|
|||
|
|
@ -114,10 +114,6 @@ device_removed(struct udev_device *udev_device, struct udev_input *input)
|
|||
&seat->base.devices_list, base.link) {
|
||||
if (streq(syspath,
|
||||
udev_device_get_syspath(device->udev_device))) {
|
||||
log_info(&input->base,
|
||||
"input device %s, %s removed\n",
|
||||
device->devname,
|
||||
udev_device_get_devnode(device->udev_device));
|
||||
evdev_device_remove(device);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue