X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Flttng-utils%2Fdebug-info%2Ftrace-ir-mapping.c;h=1f50c30487519d5e0a0e7527f03895d0a84b448b;hb=fb25b9e364c8eab9fe5e37947831e233086c7218;hp=408bab510a27574e2f3ec0d1bf8b00ee6f2d37fd;hpb=be3d506c21784d8570375552aacf7a425a0f2303;p=babeltrace.git diff --git a/src/plugins/lttng-utils/debug-info/trace-ir-mapping.c b/src/plugins/lttng-utils/debug-info/trace-ir-mapping.c index 408bab51..1f50c304 100644 --- a/src/plugins/lttng-utils/debug-info/trace-ir-mapping.c +++ b/src/plugins/lttng-utils/debug-info/trace-ir-mapping.c @@ -551,7 +551,8 @@ error: BT_HIDDEN void trace_ir_data_maps_destroy(struct trace_ir_data_maps *maps) { - bt_trace_status status; + bt_trace_remove_listener_status status; + if (!maps) { return; } @@ -569,8 +570,8 @@ void trace_ir_data_maps_destroy(struct trace_ir_data_maps *maps) } status = bt_trace_remove_destruction_listener(maps->input_trace, - maps->destruction_listener_id); - if (status != BT_TRACE_STATUS_OK) { + maps->destruction_listener_id); + if (status != BT_TRACE_REMOVE_LISTENER_STATUS_OK) { BT_COMP_LOG_CUR_LVL(BT_LOG_DEBUG, maps->log_level, maps->self_comp, "Trace destruction listener removal failed."); @@ -582,7 +583,8 @@ void trace_ir_data_maps_destroy(struct trace_ir_data_maps *maps) BT_HIDDEN void trace_ir_metadata_maps_destroy(struct trace_ir_metadata_maps *maps) { - bt_trace_class_status status; + bt_trace_class_remove_listener_status status; + if (!maps) { return; } @@ -611,9 +613,10 @@ void trace_ir_metadata_maps_destroy(struct trace_ir_metadata_maps *maps) bt_trace_class_put_ref(maps->output_trace_class); } - status = bt_trace_class_remove_destruction_listener(maps->input_trace_class, - maps->destruction_listener_id); - if (status != BT_TRACE_CLASS_STATUS_OK) { + status = bt_trace_class_remove_destruction_listener( + maps->input_trace_class, + maps->destruction_listener_id); + if (status != BT_TRACE_CLASS_REMOVE_LISTENER_STATUS_OK) { BT_COMP_LOG_CUR_LVL(BT_LOG_DEBUG, maps->log_level, maps->self_comp, "Trace destruction listener removal failed.");