debug printf

This commit is contained in:
Denis 2023-12-07 23:58:53 +01:00
parent 45a4262e16
commit 66bc4ac457
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03

View file

@ -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) {