Skip to content

Commit

Permalink
Fix: consumerd: wrong timer mentioned in error logging
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jgalar committed Apr 5, 2024
1 parent fbd566c commit 9fed015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/consumer/consumer-timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9fed015

Please sign in to comment.