summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/bus-dump.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-11-28 13:19:16 +0100
committerMichal Schmidt <mschmidt@redhat.com>2014-11-28 13:29:21 +0100
commitda927ba997d68401563b927f92e6e40e021a8e5c (patch)
tree71764cd998aef07b8943c5206c9307a93ba9c528 /src/libsystemd/sd-bus/bus-dump.c
parent0a1beeb64207eaa88ab9236787b1cbc2f704ae14 (diff)
treewide: no need to negate errno for log_*_errno()
It corrrectly handles both positive and negative errno values.
Diffstat (limited to 'src/libsystemd/sd-bus/bus-dump.c')
-rw-r--r--src/libsystemd/sd-bus/bus-dump.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsystemd/sd-bus/bus-dump.c b/src/libsystemd/sd-bus/bus-dump.c
index 54716bd904..b57ac41e05 100644
--- a/src/libsystemd/sd-bus/bus-dump.c
+++ b/src/libsystemd/sd-bus/bus-dump.c
@@ -126,7 +126,7 @@ int bus_message_dump(sd_bus_message *m, FILE *f, unsigned flags) {
r = sd_bus_message_rewind(m, !(flags & BUS_MESSAGE_DUMP_SUBTREE_ONLY));
if (r < 0) {
- log_error_errno(-r, "Failed to rewind: %m");
+ log_error_errno(r, "Failed to rewind: %m");
return r;
}
@@ -152,7 +152,7 @@ int bus_message_dump(sd_bus_message *m, FILE *f, unsigned flags) {
r = sd_bus_message_peek_type(m, &type, &contents);
if (r < 0) {
- log_error_errno(-r, "Failed to peek type: %m");
+ log_error_errno(r, "Failed to peek type: %m");
return r;
}
@@ -162,7 +162,7 @@ int bus_message_dump(sd_bus_message *m, FILE *f, unsigned flags) {
r = sd_bus_message_exit_container(m);
if (r < 0) {
- log_error_errno(-r, "Failed to exit container: %m");
+ log_error_errno(r, "Failed to exit container: %m");
return r;
}
@@ -183,7 +183,7 @@ int bus_message_dump(sd_bus_message *m, FILE *f, unsigned flags) {
if (bus_type_is_container(type) > 0) {
r = sd_bus_message_enter_container(m, type, contents);
if (r < 0) {
- log_error_errno(-r, "Failed to enter container: %m");
+ log_error_errno(r, "Failed to enter container: %m");
return r;
}
@@ -203,7 +203,7 @@ int bus_message_dump(sd_bus_message *m, FILE *f, unsigned flags) {
r = sd_bus_message_read_basic(m, type, &basic);
if (r < 0) {
- log_error_errno(-r, "Failed to get basic: %m");
+ log_error_errno(r, "Failed to get basic: %m");
return r;
}