Fix: consumer.c: wrong order of parameter in `DBG()` statement
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 6 Jul 2020 16:31:00 +0000 (12:31 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 6 Jul 2020 19:33:33 +0000 (15:33 -0400)
This debug statement is printing the padded_subbuf_size as the
subbuf_size and inversely.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I8c719e21999ffaa8df2de6089b65b90f1b211a72
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/consumer/consumer.c

index 11c43046c8d2370cad2ab0cf2bc9701cce6731a1..928fa2e8a54d48d66c0aba6ae8beaf6284119f53 100644 (file)
@@ -3376,8 +3376,8 @@ ssize_t lttng_consumer_read_subbuffer(struct lttng_consumer_stream *stream,
                 * error.
                 */
                DBG("Failed to write to tracefile (written_bytes: %zd != padded subbuffer size: %lu, subbuffer size: %lu)",
-                               written_bytes, subbuffer.info.data.subbuf_size,
-                               subbuffer.info.data.padded_subbuf_size);
+                               written_bytes, subbuffer.info.data.padded_subbuf_size,
+                               subbuffer.info.data.subbuf_size);
        }
 
        ret = stream->read_subbuffer_ops.put_next_subbuffer(stream, &subbuffer);
This page took 0.028869 seconds and 4 git commands to generate.