tree-wide: do not print hint about -M if -M is already used

(Or when -H is used, since -H and -M are incompatible.)

Note that the slightly unusual form with separate boolean variables (hint_vars,
hint_addr) instead of e.g. a const char* variable to hold the message, because this
way we don't trigger the warning about non-literal format.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-11-04 11:00:54 +01:00
parent fb293b3c0f
commit 10a7340a97
17 changed files with 33 additions and 30 deletions
+1 -1
View File
@@ -1760,7 +1760,7 @@ static int run(int argc, char* argv[]) {
else
r = bus_connect_transport_systemd(arg_transport, arg_host, arg_user, &bus);
if (r < 0)
return bus_log_connect_error(r);
return bus_log_connect_error(r, arg_transport);
if (arg_scope)
r = start_transient_scope(bus);