r = sd_event_add_io(m->event, &m->idle_pipe_event_source, m->idle_pipe[2], EPOLLIN, manager_dispatch_idle_pipe_fd, m);
if (r < 0) {
- log_error_errno(-r, "Failed to watch idle pipe: %m");
+ log_error_errno(r, "Failed to watch idle pipe: %m");
return r;
}
r = sd_event_add_io(m->event, &m->time_change_event_source, m->time_change_fd, EPOLLIN, manager_dispatch_time_change_fd, m);
if (r < 0) {
- log_error_errno(-r, "Failed to create time change event source: %m");
+ log_error_errno(r, "Failed to create time change event source: %m");
return r;
}
if (!m->notify_event_source) {
r = sd_event_add_io(m->event, &m->notify_event_source, m->notify_fd, EPOLLIN, manager_dispatch_notify_fd, m);
if (r < 0) {
- log_error_errno(-r, "Failed to allocate notify event source: %m");
+ log_error_errno(r, "Failed to allocate notify event source: %m");
return -errno;
}
* still identify to which service an exit message belongs */
r = sd_event_source_set_priority(m->notify_event_source, -7);
if (r < 0) {
- log_error_errno(-r, "Failed to set priority of notify event source: %m");
+ log_error_errno(r, "Failed to set priority of notify event source: %m");
return r;
}
}
return;
fail:
- log_error_errno(-r, "Failed to build unit path cache: %m");
+ log_error_errno(r, "Failed to build unit path cache: %m");
set_free_free(m->unit_path_cache);
m->unit_path_cache = NULL;
r = sd_event_run(m->event, wait_usec);
if (r < 0) {
- log_error_errno(-r, "Failed to run event loop: %m");
+ log_error_errno(r, "Failed to run event loop: %m");
return r;
}
}