diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index 42a3aff67e5..446b4432eed 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -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)