lib: pass config objects to component init methods
[babeltrace.git] / src / lib / graph / component-source.c
index e62c5bd1aad9508a54d2f365886bdcd35c813812..7e8ceb5645f4d693aa3012b121c16c79e6045d22 100644 (file)
@@ -50,7 +50,8 @@ struct bt_component *bt_component_source_create(
 
        source = g_new0(struct bt_component_source, 1);
        if (!source) {
-               BT_LOGE_STR("Failed to allocate one source component.");
+               BT_LIB_LOGE_APPEND_CAUSE(
+                       "Failed to allocate one source component.");
                goto end;
        }
 
@@ -64,7 +65,7 @@ bt_component_source_borrow_class_const(
 {
        struct bt_component_class *cls;
 
-       BT_ASSERT_PRE_NON_NULL(component, "Component");
+       BT_ASSERT_PRE_DEV_NON_NULL(component, "Component");
 
        cls = component->parent.class;
 
This page took 0.024617 seconds and 4 git commands to generate.