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/shared/bus-util.h | |
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/shared/bus-util.h')
-rw-r--r-- | src/shared/bus-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/bus-util.h b/src/shared/bus-util.h index 4f0d186f95..00514e359f 100644 --- a/src/shared/bus-util.h +++ b/src/shared/bus-util.h @@ -40,7 +40,7 @@ int bus_connect_transport(BusTransport transport, const char *host, bool user, s int bus_connect_transport_systemd(BusTransport transport, const char *host, bool user, sd_bus **bus); int bus_log_address_error(int r, BusTransport transport); -int bus_log_connect_error(int r); +int bus_log_connect_error(int r, BusTransport transport); #define bus_log_parse_error(r) \ log_error_errno(r, "Failed to parse bus message: %m") |