From 10a7340a97f383e72a0a58e06bfbd673f347f095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 4 Nov 2021 10:41:47 +0100 Subject: 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. --- src/timedate/timedatectl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/timedate') diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c index d9767ba564..ebe4b59620 100644 --- a/src/timedate/timedatectl.c +++ b/src/timedate/timedatectl.c @@ -1038,7 +1038,7 @@ static int run(int argc, char *argv[]) { r = bus_connect_transport(arg_transport, arg_host, false, &bus); if (r < 0) - return bus_log_connect_error(r); + return bus_log_connect_error(r, arg_transport); return timedatectl_main(bus, argc, argv); } -- cgit v1.2.1