diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-06-11 18:17:01 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-07-17 18:14:33 +0200 |
commit | 1b5caddfeeaee678d5568db38faaae82a922e19e (patch) | |
tree | 9525d24e397aacdd4bd33d9571c331ae580b9f1d /src/sleep | |
parent | sleep: explicitly list valid sleep operations in switch (diff) | |
download | systemd-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.c | 2 |
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 |