From d4e98880e9e2118831f23b4572eae698b4dd27fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 22 Nov 2018 00:51:29 +0100 Subject: Also drop a few more unnecessary uses of synthethic errno --- src/udev/udevd.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/udev/udevd.c') diff --git a/src/udev/udevd.c b/src/udev/udevd.c index 6e7bd83d11..db33de3c5f 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -793,8 +793,7 @@ static int on_exit_timeout(sd_event_source *s, uint64_t usec, void *userdata) { assert(manager); - log_error_errno(ETIMEDOUT, "Giving up waiting for workers to finish."); - + log_error("Giving up waiting for workers to finish."); sd_event_exit(manager->event, -ETIMEDOUT); return 1; @@ -956,7 +955,7 @@ static int on_worker(sd_event_source *s, int fd, uint32_t revents, void *userdat return log_error_errno(errno, "Failed to receive message: %m"); } else if (size != sizeof(struct worker_message)) { - log_warning_errno(EIO, "Ignoring worker message with invalid size %zi bytes", size); + log_warning("Ignoring worker message with invalid size %zi bytes", size); continue; } @@ -968,7 +967,7 @@ static int on_worker(sd_event_source *s, int fd, uint32_t revents, void *userdat } if (!ucred || ucred->pid <= 0) { - log_warning_errno(EIO, "Ignoring worker message without valid PID"); + log_warning("Ignoring worker message without valid PID"); continue; } -- cgit v1.2.1