1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 08:26:52 +03:00

analyze: remove unnecessary negation of bus_error_message() error number parameter

This commit is contained in:
Lennart Poettering 2018-11-06 12:04:23 +01:00
parent 90bea7448d
commit 0ed3da7c8c

View 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)