From: Mike Yuan Date: Thu, 26 Oct 2023 14:18:57 +0000 (+0800) Subject: sleep: log about errno X-Git-Tag: v255-rc1~108^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4706c3ec2ba5059db13545153aaff4b948ad516a;p=thirdparty%2Fsystemd.git sleep: log about errno --- diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c index 05d6e38ae1f..cea57d85659 100644 --- a/src/sleep/sleep.c +++ b/src/sleep/sleep.c @@ -634,7 +634,7 @@ static int run(int argc, char *argv[]) { * asked us to do both: suspend + hibernate, and it's almost certainly the * hibernation that failed, hence still do the other thing, the suspend. */ - log_notice("Couldn't hybrid sleep, will try to suspend instead."); + log_notice_errno(r, "Couldn't hybrid sleep, will try to suspend instead: %m"); r = execute(sleep_config, SLEEP_SUSPEND, "suspend-after-failed-hybrid-sleep"); }