From 4706c3ec2ba5059db13545153aaff4b948ad516a Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Thu, 26 Oct 2023 22:18:57 +0800 Subject: [PATCH] sleep: log about errno --- src/sleep/sleep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c index 05d6e38ae1..cea57d8565 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"); }