From: Jérémie Galarneau Date: Wed, 15 Mar 2023 20:42:27 +0000 (-0400) Subject: Fix: consumerd: wrong timer mentioned in error logging X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=9fed015cbc40e9323cca8f22702eb17ba1d9c2f2 Fix: consumerd: wrong timer mentioned in error logging As its name indicates, consumer_timer_monitor_stop() stops the _monitor_ timer; not the live timer. This is most likely a copy-paste error. The error logging is fixed to mention the appropriate timer. Change-Id: I418580d8928752a0702d522e3ca74fe54cbe6f8f Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/consumer/consumer-timer.cpp b/src/common/consumer/consumer-timer.cpp index 8c9371bae..2ae7f0f73 100644 --- a/src/common/consumer/consumer-timer.cpp +++ b/src/common/consumer/consumer-timer.cpp @@ -530,7 +530,7 @@ int consumer_timer_monitor_stop(struct lttng_consumer_channel *channel) ret = consumer_channel_timer_stop(&channel->monitor_timer, LTTNG_CONSUMER_SIG_MONITOR); if (ret == -1) { - ERR("Failed to stop live timer"); + ERR("Failed to stop monitor timer"); goto end; }