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:
Peter Hutterer 2014-01-29 11:37:47 +10:00
parent 5d7e0fbfec
commit 184c95c147

View file

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