From: Mathieu Desnoyers Date: Wed, 6 Mar 2013 01:56:05 +0000 (-0500) Subject: Fix: only consumerd should print errors X-Git-Tag: v2.2.0-rc1~58 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3d0ef9f63c9766ef6b18e4fc2ddcefe452234168;p=lttng-ust.git Fix: only consumerd should print errors Signed-off-by: Mathieu Desnoyers --- diff --git a/libringbuffer/ring_buffer_frontend.c b/libringbuffer/ring_buffer_frontend.c index 76f369e9..a01ebbbf 100644 --- a/libringbuffer/ring_buffer_frontend.c +++ b/libringbuffer/ring_buffer_frontend.c @@ -612,7 +612,6 @@ static void channel_print_errors(struct channel *chan, static void channel_free(struct channel *chan, struct lttng_ust_shm_handle *handle) { - channel_print_errors(chan, handle); channel_backend_free(&chan->backend, handle); /* chan is freed by shm teardown */ shm_object_table_destroy(handle->table); @@ -830,6 +829,10 @@ void channel_destroy(struct channel *chan, struct lttng_ust_shm_handle *handle, * switching the buffers. */ channel_unregister_notifiers(chan, handle); + /* + * The consumer prints errors. + */ + channel_print_errors(chan, handle); } /*