From 96393977613193a0e28343ea32a60c819a00e726 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 2 Apr 2020 00:45:21 -0400 Subject: [PATCH] Fix: consumerd: incorrect clear logging statement MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit A logging statement was apparently copy-pasted from the rotation code and not adapted for the consumer_clear_buffer command and would indicate that a flush operation failed when a clear operation was performed. Signed-off-by: Jérémie Galarneau Change-Id: I909a391fbd8b8bf48c7481d394571ad19d7f6332 --- src/common/consumer/consumer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/consumer/consumer.c b/src/common/consumer/consumer.c index c6eb71d57..4613284a8 100644 --- a/src/common/consumer/consumer.c +++ b/src/common/consumer/consumer.c @@ -4193,7 +4193,7 @@ int consumer_clear_buffer(struct lttng_consumer_stream *stream) case LTTNG_CONSUMER_KERNEL: ret = kernctl_buffer_clear(stream->wait_fd); if (ret < 0) { - ERR("Failed to flush kernel stream"); + ERR("Failed to clear kernel stream (ret = %d)", ret); goto end; } break; -- 2.34.1