From 184c95c147994f82c9899f2a4afd666e606c8089 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 29 Jan 2014 11:37:47 +1000 Subject: [PATCH] path: print error when failing to open a device MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Hutterer Reviewed-by: Jonas Ã…dahl --- src/path.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/path.c b/src/path.c index 2553005f..2b8f5304 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; }