debug printf
This commit is contained in:
parent
45a4262e16
commit
66bc4ac457
1 changed files with 2 additions and 0 deletions
|
|
@ -81,6 +81,8 @@ int dev_evdev_open(
|
||||||
|
|
||||||
snprintf(path, MAX_PATH_LEN - 1, "%s%s", input_path, dir->d_name);
|
snprintf(path, MAX_PATH_LEN - 1, "%s%s", input_path, dir->d_name);
|
||||||
|
|
||||||
|
printf("Testing for device %s\n", path);
|
||||||
|
|
||||||
// try to open the device, if it cannot be opened to go the next
|
// try to open the device, if it cannot be opened to go the next
|
||||||
int fd = open(path, O_RDWR);
|
int fd = open(path, O_RDWR);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue