diff options
Diffstat (limited to 'libusb/os/linux_udev.c')
-rw-r--r-- | libusb/os/linux_udev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libusb/os/linux_udev.c b/libusb/os/linux_udev.c index b09d299..8cf19d5 100644 --- a/libusb/os/linux_udev.c +++ b/libusb/os/linux_udev.c @@ -86,12 +86,12 @@ int linux_udev_start_event_monitor(void) /* Make sure the udev file descriptor is marked as CLOEXEC */ r = fcntl(udev_monitor_fd, F_GETFD); if (r == -1) { - usbi_err(NULL, "geting udev monitor fd flags (%d)", errno); + usbi_err(NULL, "failed to get udev monitor fd flags, errno=%d", errno); goto err_free_monitor; } if (!(r & FD_CLOEXEC)) { if (fcntl(udev_monitor_fd, F_SETFD, r | FD_CLOEXEC) == -1) { - usbi_err(NULL, "setting udev monitor fd flags (%d)", errno); + usbi_err(NULL, "failed to set udev monitor fd flags, errno=%d", errno); goto err_free_monitor; } } @@ -101,12 +101,12 @@ int linux_udev_start_event_monitor(void) * so make sure this is set */ r = fcntl(udev_monitor_fd, F_GETFL); if (r == -1) { - usbi_err(NULL, "getting udev monitor fd status flags (%d)", errno); + usbi_err(NULL, "failed to get udev monitor fd status flags, errno=%d", errno); goto err_free_monitor; } if (!(r & O_NONBLOCK)) { if (fcntl(udev_monitor_fd, F_SETFL, r | O_NONBLOCK) == -1) { - usbi_err(NULL, "setting udev monitor fd status flags (%d)", errno); + usbi_err(NULL, "failed to set udev monitor fd status flags, errno=%d", errno); goto err_free_monitor; } } |