Replace assert() -> BT_ASSERT() and some preconditions with BT_ASSERT_PRE()
[babeltrace.git] / plugins / ctf / lttng-live / metadata.c
index 4a3b50b0ceae3c0f3fd32d776ecf48a1ccb9962e..0aae051c5b22166dd6256e34dc5e3216445f5870 100644 (file)
@@ -69,13 +69,13 @@ enum bt_lttng_live_iterator_status lttng_live_update_clock_map(
        }
 
        count = bt_trace_get_clock_class_count(trace->trace);
-       assert(count >= 0);
+       BT_ASSERT(count >= 0);
 
        for (i = 0; i < count; i++) {
                struct bt_clock_class *clock_class =
                        bt_trace_get_clock_class_by_index(trace->trace, i);
 
-               assert(clock_class);
+               BT_ASSERT(clock_class);
                ret = bt_clock_class_priority_map_add_clock_class(
                        trace->cc_prio_map, clock_class, 0);
                BT_PUT(clock_class);
This page took 0.025467 seconds and 4 git commands to generate.