diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-05-30 08:45:21 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-05-30 15:51:48 +0200 |
commit | 61fbc58c46fd7776ab6cf33d3bb91c0f15136dc2 (patch) | |
tree | 1128b07db7f08243411b90687eb0d90d163c0af6 /src/home | |
parent | bus-unit-util: rework UnitFreezer, explicitly thaw unit (diff) | |
download | systemd-61fbc58c46fd7776ab6cf33d3bb91c0f15136dc2.tar.xz systemd-61fbc58c46fd7776ab6cf33d3bb91c0f15136dc2.zip |
sleep,home: clean up logs for session freezer a bit
Diffstat (limited to 'src/home')
-rw-r--r-- | src/home/homework.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/home/homework.c b/src/home/homework.c index 428f832911..b556904651 100644 --- a/src/home/homework.c +++ b/src/home/homework.c @@ -1875,12 +1875,11 @@ static int user_session_freezer(uid_t uid, bool freeze_now, UnitFreezer **ret) { r = getenv_bool("SYSTEMD_HOME_LOCK_FREEZE_SESSION"); if (r < 0 && r != -ENXIO) - log_warning_errno(r, "Cannot parse value of $SYSTEMD_HOME_LOCK_FREEZE_SESSION, ignoring."); + log_warning_errno(r, "Cannot parse value of $SYSTEMD_HOME_LOCK_FREEZE_SESSION, ignoring: %m"); else if (r == 0) { if (freeze_now) - log_notice("Session remains unfrozen on explicit request ($SYSTEMD_HOME_LOCK_FREEZE_SESSION " - "is set to false). This is not recommended, and might result in unexpected behavior " - "including data loss!"); + log_notice("Session remains unfrozen on explicit request ($SYSTEMD_HOME_LOCK_FREEZE_SESSION=0).\n" + "This is not recommended, and might result in unexpected behavior including data loss!"); *ret = NULL; return 0; |