[PATCH libinput 3/5] path: print error when failing to open a device
Peter Hutterer
peter.hutterer at who-t.net
Tue Jan 28 17:55:35 PST 2014
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/path.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/path.c b/src/path.c
index 2553005..2b8f530 100644
--- a/src/path.c
+++ b/src/path.c
@@ -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;
}
--
1.8.4.2
More information about the wayland-devel
mailing list