Better printf

This commit is contained in:
Denis 2023-12-07 23:44:03 +01:00
parent 1978cefab3
commit cae2289d99
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03
2 changed files with 3 additions and 3 deletions

View file

@ -107,11 +107,11 @@ int dev_evdev_open(
}
if (libevdev_new_from_fd(fd, &out_evdev) != 0) {
fprintf(stderr, "Cannot initialize libevdev from this device (%s): skipping.\n", path);
fprintf(stderr, "Cannot initialize libevdev from this device (%s) -- Skipping.\n", path);
close(fd);
continue;
} else {
printf("Acquired evdev device %d", fd);
printf("Acquired evdev device %s: fd=%d", path, fd);
}
// try to open the device