]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
analyze: remove unnecessary negation of bus_error_message() error number parameter
authorLennart Poettering <lennart@poettering.net>
Tue, 6 Nov 2018 11:04:23 +0000 (12:04 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 30 Nov 2018 15:46:09 +0000 (16:46 +0100)
src/analyze/analyze.c

index 42a3aff67e5409dacf2335ff553af47847905c16..446b4432eedc1f1af3474e64e278b600caba7ff8 100644 (file)
@@ -169,7 +169,7 @@ static int bus_get_uint64_property(sd_bus *bus, const char *path, const char *in
                         't', val);
 
         if (r < 0)
-                return log_error_errno(r, "Failed to parse reply: %s", bus_error_message(&error, -r));
+                return log_error_errno(r, "Failed to parse reply: %s", bus_error_message(&error, r));
 
         return 0;
 }
@@ -192,7 +192,7 @@ static int bus_get_unit_property_strv(sd_bus *bus, const char *path, const char
                         &error,
                         strv);
         if (r < 0)
-                return log_error_errno(r, "Failed to get unit property %s: %s", property, bus_error_message(&error, -r));
+                return log_error_errno(r, "Failed to get unit property %s: %s", property, bus_error_message(&error, r));
 
         return 0;
 }
@@ -355,7 +355,7 @@ static int acquire_time_data(sd_bus *bus, struct unit_times **out) {
                         &error, &reply,
                         NULL);
         if (r < 0)
-                return log_error_errno(r, "Failed to list units: %s", bus_error_message(&error, -r));
+                return log_error_errno(r, "Failed to list units: %s", bus_error_message(&error, r));
 
         r = sd_bus_message_enter_container(reply, SD_BUS_TYPE_ARRAY, "(ssssssouso)");
         if (r < 0)
@@ -978,7 +978,7 @@ static int list_dependencies(sd_bus *bus, const char *name) {
                         &reply,
                         "s");
         if (r < 0)
-                return log_error_errno(r, "Failed to get ID: %s", bus_error_message(&error, -r));
+                return log_error_errno(r, "Failed to get ID: %s", bus_error_message(&error, r));
 
         r = sd_bus_message_read(reply, "s", &id);
         if (r < 0)
@@ -1238,7 +1238,7 @@ static int dot(int argc, char *argv[], void *userdata) {
                        &reply,
                        "");
         if (r < 0)
-                log_error_errno(r, "Failed to list units: %s", bus_error_message(&error, -r));
+                log_error_errno(r, "Failed to list units: %s", bus_error_message(&error, r));
 
         r = sd_bus_message_enter_container(reply, SD_BUS_TYPE_ARRAY, "(ssssssouso)");
         if (r < 0)