]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sleep: log about errno
authorMike Yuan <me@yhndnzj.com>
Thu, 26 Oct 2023 14:18:57 +0000 (22:18 +0800)
committerMike Yuan <me@yhndnzj.com>
Fri, 27 Oct 2023 09:57:03 +0000 (17:57 +0800)
src/sleep/sleep.c

index 05d6e38ae1ff3914a0498bdc62f17f1a5137cddd..cea57d85659569e231f51f50f2a37fd1fe216305 100644 (file)
@@ -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");
                 }