filter = g_new0(struct bt_component_filter, 1);
if (!filter) {
- BT_LOGE_STR("Failed to allocate one filter component.");
+ BT_LIB_LOGE_APPEND_CAUSE(
+ "Failed to allocate one filter 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;