lib: use common precond. assert. macros from `assert-cond.h` thru lib
[babeltrace.git] / src / lib / graph / component-sink.c
index d89b7283b13da459892080df29b7c8fc871bccde..d9d33cc9ab205c6a5de9e7722c10f25e1c8e7e16 100644 (file)
@@ -51,7 +51,7 @@ bt_component_sink_borrow_class_const(
 {
        struct bt_component_class *cls;
 
-       BT_ASSERT_PRE_DEV_NON_NULL(component, "Component");
+       BT_ASSERT_PRE_DEV_COMP_NON_NULL(component);
 
        cls = component->parent.class;
 
@@ -135,7 +135,7 @@ bt_bool bt_self_component_sink_is_interrupted(
 {
        struct bt_component *comp = (void *) self_comp;
 
-       BT_ASSERT_PRE_NON_NULL(comp, "Component");
+       BT_ASSERT_PRE_COMP_NON_NULL(comp);
        return (bt_bool) bt_graph_is_interrupted(
                bt_component_borrow_graph(comp));
 }
This page took 0.022787 seconds and 4 git commands to generate.