mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-06 07:58:06 +02:00
path: print error when failing to open a device
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
parent
5d7e0fbfec
commit
184c95c147
1 changed files with 2 additions and 1 deletions
|
|
@ -130,7 +130,8 @@ path_input_enable(struct libinput *libinput)
|
|||
|
||||
fd = open_restricted(libinput, input->path, 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 -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue