map,
&info);
if (r < 0) {
- log_error("Failed to query server: %s", strerror(-r));
+ log_error_errno(-r, "Failed to query server: %m");
goto fail;
}
r = get_timezones(&zones);
if (r < 0) {
- log_error("Failed to read list of time zones: %s", strerror(-r));
+ log_error_errno(-r, "Failed to read list of time zones: %m");
return r;
}
r = bus_open_transport(arg_transport, arg_host, false, &bus);
if (r < 0) {
- log_error("Failed to create bus connection: %s", strerror(-r));
+ log_error_errno(-r, "Failed to create bus connection: %m");
goto finish;
}