From: Francis Deslauriers Date: Mon, 6 Jul 2020 16:31:00 +0000 (-0400) Subject: Fix: consumer.c: wrong order of parameter in `DBG()` statement X-Git-Tag: v2.11.5~13 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=874499e2b07b8b4cbafe656f1176a66edd48b716;p=lttng-tools.git Fix: consumer.c: wrong order of parameter in `DBG()` statement This debug statement is printing the padded_subbuf_size as the subbuf_size and inversely. Signed-off-by: Francis Deslauriers Change-Id: I8c719e21999ffaa8df2de6089b65b90f1b211a72 Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/consumer/consumer.c b/src/common/consumer/consumer.c index 11c43046c..928fa2e8a 100644 --- a/src/common/consumer/consumer.c +++ b/src/common/consumer/consumer.c @@ -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);