summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-26 15:24:58 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-26 17:16:56 +0100
commit90911bb63ec1b535017f5d9df2b5465c8a72c474 (patch)
tree6e01919319671c82a34c6b97961c6e1c0ef4867e
parent72ebbf3450340338d71ea2039dfb296bc1d595db (diff)
bus: always show messages we send
-rw-r--r--src/libsystemd-bus/sd-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c
index 43be1debdc..44ab071c47 100644
--- a/src/libsystemd-bus/sd-bus.c
+++ b/src/libsystemd-bus/sd-bus.c
@@ -1376,7 +1376,7 @@ static int bus_write_message(sd_bus *bus, sd_bus_message *m, size_t *idx) {
if (r <= 0)
return r;
- if (bus->is_kernel || bus->windex >= BUS_MESSAGE_SIZE(m))
+ if (bus->is_kernel || *idx >= BUS_MESSAGE_SIZE(m))
log_debug("Sent message type=%s sender=%s destination=%s object=%s interface=%s member=%s cookie=%lu reply_cookie=%lu error=%s",
bus_message_type_to_string(m->header->type),
strna(sd_bus_message_get_sender(m)),