chiark / gitweb /
treewide: more log_*_errno() conversions, multiline calls
[elogind.git] / src / run / run.c
index ea9454a0e52cb3b537e59436bafe250ebf8e73a8..8c7bd5c92d890ae5ab25e0cff6041410180a43c9 100644 (file)
@@ -575,10 +575,9 @@ int main(int argc, char* argv[]) {
 
         r = find_binary(argv[optind], arg_transport == BUS_TRANSPORT_LOCAL, &command);
         if (r < 0) {
-                log_error("Failed to find executable %s%s: %s",
-                          argv[optind],
-                          arg_transport == BUS_TRANSPORT_LOCAL ? "" : " on local system",
-                          strerror(-r));
+                log_error_errno(r, "Failed to find executable %s%s: %m",
+                                argv[optind],
+                                arg_transport == BUS_TRANSPORT_LOCAL ? "" : " on local system");
                 goto finish;
         }
         argv[optind] = command;