X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fnotify%2Fnotify.c;h=5bf901ec6a28b8c22d1acf0f1cbbc5cf54efc27d;hb=e28aa588f04ace17ca94e9e0667819bea265fbd9;hp=a0f757a2523abde87f04e906092d621330ff45c5;hpb=d6bc8348d5be8576a475ac8ced2b0146e60fb71f;p=elogind.git diff --git a/src/notify/notify.c b/src/notify/notify.c index a0f757a25..5bf901ec6 100644 --- a/src/notify/notify.c +++ b/src/notify/notify.c @@ -193,7 +193,7 @@ int main(int argc, char* argv[]) { r = sd_pid_notify(arg_pid, false, n); if (r < 0) { - log_error("Failed to notify init system: %s", strerror(-r)); + log_error_errno(r, "Failed to notify init system: %m"); goto finish; }