chiark / gitweb /
bus: always show messages we send
authorLennart Poettering <lennart@poettering.net>
Thu, 26 Dec 2013 14:24:58 +0000 (15:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 26 Dec 2013 16:16:56 +0000 (17:16 +0100)
src/libsystemd-bus/sd-bus.c

index 43be1de..44ab071 100644 (file)
@@ -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 (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)),
                 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)),