diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2022-07-15 21:19:42 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-07-16 07:00:40 +0900 |
commit | e99b9285cb289115a64d775c768e6e831e39f12e (patch) | |
tree | 62400ed456648e46eb04b5de3641a2c2768f3e72 /src | |
parent | 59159aee20037b444dc922849a5361db4c7f2600 (diff) | |
download | systemd-e99b9285cb289115a64d775c768e6e831e39f12e.tar.gz |
core: drop a stray %m specifier from a warning message
since in this specific case (r == 0) `errno` is irrelevant and most likely
set to zero, leading up to a confusing message:
```
[ 120.595085] H systemd[1]: session-5.scope: No PIDs left to attach to the scope's control group, refusing: Success
[ 120.595144] H systemd[1]: session-5.scope: Failed with result 'resources'.
```
Diffstat (limited to 'src')
-rw-r--r-- | src/core/scope.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/scope.c b/src/core/scope.c index 63d3288caf..080bb71356 100644 --- a/src/core/scope.c +++ b/src/core/scope.c @@ -392,7 +392,7 @@ static int scope_start(Unit *u) { return r; } if (r == 0) { - log_unit_warning(u, "No PIDs left to attach to the scope's control group, refusing: %m"); + log_unit_warning(u, "No PIDs left to attach to the scope's control group, refusing."); scope_enter_dead(s, SCOPE_FAILURE_RESOURCES); return -ECHILD; } |