chiark / gitweb /
core: convert log_unit_*() to log_unit_*_errno()
[elogind.git] / src / hostname / hostnamectl.c
index e48736920f126a6c4b048be48df03be97d38f482..1026e195dc9e88072373c700c8ef54c32a1d9838 100644 (file)
@@ -529,7 +529,7 @@ int main(int argc, char *argv[]) {
 
         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;
         }