X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fnotify%2Fnotify.c;h=f98075d5130c3c3d08151bdc861abc8c69d7d8ca;hb=93a1e66efd4b0f4cda29c467d20d0f7510c0b3a8;hp=a0f757a2523abde87f04e906092d621330ff45c5;hpb=d6bc8348d5be8576a475ac8ced2b0146e60fb71f;p=elogind.git diff --git a/src/notify/notify.c b/src/notify/notify.c index a0f757a25..f98075d51 100644 --- a/src/notify/notify.c +++ b/src/notify/notify.c @@ -42,12 +42,12 @@ static bool arg_booted = false; static void help(void) { printf("%s [OPTIONS...] [VARIABLE=VALUE...]\n\n" "Notify the init system about service status updates.\n\n" - " -h --help Show this help\n" - " --version Show package version\n" - " --ready Inform the init system about service start-up completion\n" - " --pid[=PID] Set main pid of daemon\n" - " --status=TEXT Set status text\n" - " --booted Returns 0 if the system was booted up with systemd, non-zero otherwise\n", + " -h --help Show this help\n" + " --version Show package version\n" + " --ready Inform the init system about service start-up completion\n" + " --pid[=PID] Set main pid of daemon\n" + " --status=TEXT Set status text\n" + " --booted Check if the system was booted up with systemd\n", program_invocation_short_name); } @@ -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; }