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

View file

@ -241,7 +241,7 @@ void* dev_in_thread_func(void *ptr) {
} else if (devices[i].type == DEV_IN_TYPE_IIO) {
} else if (devices[i].type == DEV_IN_TYPE_NONE) {
fprintf(stderr, "Device %zu not found -- Attempt reconnection", i);
fprintf(stderr, "Device %zu not found -- Attempt reconnection\n", i);
if (devs->input_dev_decl[i].dev_type == input_dev_type_uinput) {
const int open_res = open_device(&devs->input_dev_decl[i].filters.ev, &devices[i].dev.evdev);