mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 16:59:03 +03:00
analyze: remove unnecessary negation of bus_error_message() error number parameter
This commit is contained in:
parent
90bea7448d
commit
0ed3da7c8c
@ -169,7 +169,7 @@ static int bus_get_uint64_property(sd_bus *bus, const char *path, const char *in
|
|||||||
't', val);
|
't', val);
|
||||||
|
|
||||||
if (r < 0)
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -192,7 +192,7 @@ static int bus_get_unit_property_strv(sd_bus *bus, const char *path, const char
|
|||||||
&error,
|
&error,
|
||||||
strv);
|
strv);
|
||||||
if (r < 0)
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -355,7 +355,7 @@ static int acquire_time_data(sd_bus *bus, struct unit_times **out) {
|
|||||||
&error, &reply,
|
&error, &reply,
|
||||||
NULL);
|
NULL);
|
||||||
if (r < 0)
|
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)");
|
r = sd_bus_message_enter_container(reply, SD_BUS_TYPE_ARRAY, "(ssssssouso)");
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
@ -978,7 +978,7 @@ static int list_dependencies(sd_bus *bus, const char *name) {
|
|||||||
&reply,
|
&reply,
|
||||||
"s");
|
"s");
|
||||||
if (r < 0)
|
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);
|
r = sd_bus_message_read(reply, "s", &id);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
@ -1238,7 +1238,7 @@ static int dot(int argc, char *argv[], void *userdata) {
|
|||||||
&reply,
|
&reply,
|
||||||
"");
|
"");
|
||||||
if (r < 0)
|
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)");
|
r = sd_bus_message_enter_container(reply, SD_BUS_TYPE_ARRAY, "(ssssssouso)");
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user