chiark / gitweb /
rfkill: rework how we generate file names from rfkill devices
[elogind.git] / src / analyze / analyze.c
index 82f5cf3c57d044c41b50d6c046b8fe45bdff838c..9a5fd741c7309aaad3adb04feaac7497b1c65f56 100644 (file)
@@ -907,7 +907,7 @@ static int analyze_critical_chain(sd_bus *bus, char *names[]) {
         if (n <= 0)
                 return n;
 
-        h = hashmap_new(string_hash_func, string_compare_func);
+        h = hashmap_new(&string_hash_ops);
         if (!h)
                 return -ENOMEM;
 
@@ -1362,7 +1362,7 @@ int main(int argc, char *argv[]) {
 
                 r = bus_open_transport_systemd(arg_transport, arg_host, arg_user, &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;
                 }