mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-06-02 15:28:24 +02:00
udev: print errno if we can't open a device
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
b59d9c537b
commit
ac1f1acb41
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ device_added(struct udev_device *udev_device, struct udev_input *input)
|
|||
* read. mtdev_get() also expects this. */
|
||||
fd = open_restricted(libinput, devnode, O_RDWR | O_NONBLOCK);
|
||||
if (fd < 0) {
|
||||
log_info("opening input device '%s' failed.\n", devnode);
|
||||
log_info("opening input device '%s' failed (%s).\n", devnode, strerror(-fd));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue