projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a999355
)
sleep: also log about errno when getenv_bool fails
author
Mike Yuan
<me@yhndnzj.com>
Tue, 11 Jun 2024 16:17:01 +0000
(18:17 +0200)
committer
Mike Yuan
<me@yhndnzj.com>
Wed, 17 Jul 2024 16:14:33 +0000
(18:14 +0200)
src/sleep/sleep.c
patch
|
blob
|
history
diff --git
a/src/sleep/sleep.c
b/src/sleep/sleep.c
index 88fb5ecab29efdfe744eed8e77b3bcb66bf8e2ca..7e5075a63cb9cd454ce094fa76b679e8673b5806 100644
(file)
--- 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