sleep: log about errno

This commit is contained in:
Mike Yuan
2023-10-27 17:57:03 +08:00
parent 37f80890b2
commit 4706c3ec2b
+1 -1
View 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");
}