1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-26 08:55:18 +03:00

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'.
```

(cherry picked from commit e99b9285cb)
(cherry picked from commit 5c822e33c9)
This commit is contained in:
Frantisek Sumsal 2022-07-15 21:19:42 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent c4c647fdb9
commit 32848f4559

View File

@ -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;
}