From: Frantisek Sumsal Date: Fri, 15 Jul 2022 19:19:42 +0000 (+0200) Subject: core: drop a stray %m specifier from a warning message X-Git-Tag: v252-rc1~626 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e99b9285cb289115a64d775c768e6e831e39f12e;p=thirdparty%2Fsystemd.git 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'. ``` --- diff --git a/src/core/scope.c b/src/core/scope.c index 63d3288caf1..080bb713560 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; }