diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-11-04 10:41:47 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-11-04 11:00:54 +0100 |
commit | 10a7340a97f383e72a0a58e06bfbd673f347f095 (patch) | |
tree | e3a0363d0318d12ef727935a3fcc5b6023d9f53f /src/cgls | |
parent | busctl: do not print hint about -M if -M is already used (diff) | |
download | systemd-10a7340a97f383e72a0a58e06bfbd673f347f095.tar.xz systemd-10a7340a97f383e72a0a58e06bfbd673f347f095.zip |
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.
Diffstat (limited to 'src/cgls')
-rw-r--r-- | src/cgls/cgls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cgls/cgls.c b/src/cgls/cgls.c index e2c746f7e7..487c90823e 100644 --- a/src/cgls/cgls.c +++ b/src/cgls/cgls.c @@ -216,7 +216,7 @@ static int run(int argc, char *argv[]) { arg_show_unit == SHOW_UNIT_USER, &bus); if (r < 0) - return bus_log_connect_error(r); + return bus_log_connect_error(r, BUS_TRANSPORT_LOCAL); } q = show_cgroup_get_unit_path_and_warn(bus, *name, &cgroup); |