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-Tag: v2.12.16~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4290fa20633867bd6e08ee2478dc7be93f1b0386;p=lttng-tools.git 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. Signed-off-by: Jérémie Galarneau Change-Id: I9768408581fc6a06f47892850a3a91669df35188 --- diff --git a/src/common/consumer/consumer-timer.c b/src/common/consumer/consumer-timer.c index c190d3b62..ecd920717 100644 --- a/src/common/consumer/consumer-timer.c +++ b/src/common/consumer/consumer-timer.c @@ -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; }