summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/test-bus-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsystemd/sd-bus/test-bus-server.c')
-rw-r--r--src/libsystemd/sd-bus/test-bus-server.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libsystemd/sd-bus/test-bus-server.c b/src/libsystemd/sd-bus/test-bus-server.c
index 30e2d8cf44..e65811f047 100644
--- a/src/libsystemd/sd-bus/test-bus-server.c
+++ b/src/libsystemd/sd-bus/test-bus-server.c
@@ -65,14 +65,14 @@ static void *server(void *p) {
r = sd_bus_process(bus, &m);
if (r < 0) {
- log_error_errno(-r, "Failed to process requests: %m");
+ log_error_errno(r, "Failed to process requests: %m");
goto fail;
}
if (r == 0) {
r = sd_bus_wait(bus, (uint64_t) -1);
if (r < 0) {
- log_error_errno(-r, "Failed to wait: %m");
+ log_error_errno(r, "Failed to wait: %m");
goto fail;
}
@@ -90,7 +90,7 @@ static void *server(void *p) {
r = sd_bus_message_new_method_return(m, &reply);
if (r < 0) {
- log_error_errno(-r, "Failed to allocate return: %m");
+ log_error_errno(r, "Failed to allocate return: %m");
goto fail;
}
@@ -102,7 +102,7 @@ static void *server(void *p) {
&reply,
&SD_BUS_ERROR_MAKE_CONST(SD_BUS_ERROR_UNKNOWN_METHOD, "Unknown method."));
if (r < 0) {
- log_error_errno(-r, "Failed to allocate return: %m");
+ log_error_errno(r, "Failed to allocate return: %m");
goto fail;
}
}
@@ -110,7 +110,7 @@ static void *server(void *p) {
if (reply) {
r = sd_bus_send(bus, reply, NULL);
if (r < 0) {
- log_error_errno(-r, "Failed to send reply: %m");
+ log_error_errno(r, "Failed to send reply: %m");
goto fail;
}
}
@@ -147,7 +147,7 @@ static int client(struct context *c) {
"org.freedesktop.systemd.test",
"Exit");
if (r < 0) {
- log_error_errno(-r, "Failed to allocate method call: %m");
+ log_error_errno(r, "Failed to allocate method call: %m");
return r;
}