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.12.2~25 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=642091c6dc494ca2cbf9f1f893f12eced8a2d9f9;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 99514280a..311c64020 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);