X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fautomount.c;h=3f34a2895f2c11186700b9faeec0a917f5ebaad7;hb=31938a8560a664c32a9d72f1fc2d4347b232e6e9;hp=f874951f4c6b5c76f9960d8b3624df06d979471f;hpb=b2dc4e44c540a30c5ea12a9a570425ceb310c320;p=elogind.git diff --git a/src/core/automount.c b/src/core/automount.c index f874951f4..3f34a2895 100644 --- a/src/core/automount.c +++ b/src/core/automount.c @@ -422,7 +422,7 @@ int automount_send_ready(Automount *a, int status) { return ioctl_fd; if (status) - log_unit_debug(UNIT(a)->id, "Sending failure: %s", strerror(-status)); + log_unit_debug_errno(UNIT(a)->id, status, "Sending failure: %m"); else log_unit_debug(UNIT(a)->id, "Sending success."); @@ -770,7 +770,7 @@ static int automount_dispatch_io(sd_event_source *s, int fd, uint32_t events, vo r = set_put(a->tokens, UINT_TO_PTR(packet.v5_packet.wait_queue_token)); if (r < 0) { - log_unit_error(UNIT(a)->id, "Failed to remember token: %s", strerror(-r)); + log_unit_error_errno(UNIT(a)->id, r, "Failed to remember token: %m"); goto fail; }