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;
}
{
struct bt_component_class *cls;
- BT_ASSERT_PRE_NON_NULL(component, "Component");
+ BT_ASSERT_PRE_DEV_NON_NULL(component, "Component");
cls = component->parent.class;