summaryrefslogtreecommitdiffstats
path: root/src/sleep
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-06-11 18:17:01 +0200
committerMike Yuan <me@yhndnzj.com>2024-07-17 18:14:33 +0200
commit1b5caddfeeaee678d5568db38faaae82a922e19e (patch)
tree9525d24e397aacdd4bd33d9571c331ae580b9f1d /src/sleep
parentsleep: explicitly list valid sleep operations in switch (diff)
downloadsystemd-1b5caddfeeaee678d5568db38faaae82a922e19e.tar.xz
systemd-1b5caddfeeaee678d5568db38faaae82a922e19e.zip
sleep: also log about errno when getenv_bool fails
Diffstat (limited to 'src/sleep')
-rw-r--r--src/sleep/sleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c
index 88fb5ecab2..7e5075a63c 100644
--- a/src/sleep/sleep.c
+++ b/src/sleep/sleep.c
@@ -603,7 +603,7 @@ static int run(int argc, char *argv[]) {
/* Freeze the user sessions */
r = getenv_bool("SYSTEMD_SLEEP_FREEZE_USER_SESSIONS");
if (r < 0 && r != -ENXIO)
- log_warning_errno(r, "Cannot parse value of $SYSTEMD_SLEEP_FREEZE_USER_SESSIONS, ignoring.");
+ log_warning_errno(r, "Cannot parse value of $SYSTEMD_SLEEP_FREEZE_USER_SESSIONS, ignoring: %m");
if (r != 0)
(void) unit_freezer_new_freeze(SPECIAL_USER_SLICE, &user_slice_freezer);
else