projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17f3e91
)
sleep: add mising error message
author
Lennart Poettering
<lennart@poettering.net>
Tue, 30 Jan 2024 10:14:42 +0000
(11:14 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 30 Jan 2024 10:31:36 +0000
(11:31 +0100)
src/sleep/sleep.c
patch
|
blob
|
history
diff --git
a/src/sleep/sleep.c
b/src/sleep/sleep.c
index 31dca446f2fc3632ab9ef87aa8c56aede24f7fbe..6864f631f1f2e659be2ebe21047a03e5f79f9175 100644
(file)
--- a/
src/sleep/sleep.c
+++ b/
src/sleep/sleep.c
@@
-233,7
+233,7
@@
static int execute(
/* This file is opened first, so that if we hit an error, we can abort before modifying any state. */
state_fd = open("/sys/power/state", O_WRONLY|O_CLOEXEC);
if (state_fd < 0)
- return
-errno
;
+ return
log_error_errno(errno, "Failed to open /sys/power/state: %m")
;
/* Configure hibernation settings if we are supposed to hibernate */
if (sleep_operation_is_hibernation(operation)) {