projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f8d9aa
)
weston-launch: Print explanation of why we failed to open the device
author
Rob Bradford
<rob@linux.intel.com>
Mon, 20 May 2013 15:55:10 +0000
(16:55 +0100)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 20 May 2013 20:55:12 +0000
(16:55 -0400)
src/weston-launch.c
patch
|
blob
|
history
diff --git
a/src/weston-launch.c
b/src/weston-launch.c
index
89c3c5a
..
42b2506
100644
(file)
--- a/
src/weston-launch.c
+++ b/
src/weston-launch.c
@@
-320,12
+320,17
@@
handle_open(struct weston_launch *wl, struct msghdr *msg, ssize_t len)
goto err0;
fd = open(message->path, message->flags);
- if (fd < 0)
+ if (fd < 0) {
+ fprintf(stderr, "Error opening device %s: %m\n",
+ message->path);
goto err0;
+ }
if (major(s.st_rdev) != INPUT_MAJOR) {
close(fd);
fd = -1;
+ fprintf(stderr, "Device %s is not an input device\n",
+ message->path);
goto err0;
}