X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemctl.c;h=7373e64e8c24c53011694634e01e767fc3136569;hb=75d3fc60f88e08bf953063819a8a04b881d6db23;hp=175159d68fb42fc87380d72263d198bc9f3eadeb;hpb=263653e10353d8ad155f1faba01981816a2bb712;p=elogind.git diff --git a/src/systemctl.c b/src/systemctl.c index 175159d68..7373e64e8 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -5156,7 +5156,7 @@ static int halt_main(DBusConnection *bus) { if (!arg_no_wtmp) { if (sd_booted() > 0) log_debug("Not writing utmp record, assuming that systemd-update-utmp is used."); - else if ((r = utmp_put_shutdown(0)) < 0) + else if ((r = utmp_put_shutdown()) < 0) log_warning("Failed to write utmp record: %s", strerror(-r)); }