From: Jérémie Galarneau Date: Thu, 2 Apr 2020 04:45:21 +0000 (-0400) Subject: Fix: consumerd: incorrect clear logging statement X-Git-Tag: v2.13.0-rc1~692 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=96393977613193a0e28343ea32a60c819a00e726;hp=53fb6336415e5f19b6e8c4baeb0d0555ed5d6e66 Fix: consumerd: incorrect clear logging statement 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 --- 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;