projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d7e0fb
)
path: print error when failing to open a device
author
Peter Hutterer
<peter.hutterer@who-t.net>
Wed, 29 Jan 2014 01:37:47 +0000
(11:37 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Fri, 31 Jan 2014 04:57:18 +0000
(14:57 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com>
src/path.c
patch
|
blob
|
history
diff --git
a/src/path.c
b/src/path.c
index
2553005
..
2b8f530
100644
(file)
--- 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;
}