From 642091c6dc494ca2cbf9f1f893f12eced8a2d9f9 Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Mon, 6 Jul 2020 12:31:00 -0400 Subject: [PATCH] Fix: consumer.c: wrong order of parameter in `DBG()` statement MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/common/consumer/consumer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.34.1