const struct bt_value *attr_field_obj = NULL;
const struct bt_value *attr_field_name_obj = NULL;
- BT_ASSERT(attr_obj);
- BT_ASSERT(index < bt_value_array_get_length(attr_obj));
+ BT_ASSERT_DBG(attr_obj);
+ BT_ASSERT_DBG(index < bt_value_array_get_length(attr_obj));
attr_field_obj = bt_value_array_borrow_element_by_index_const(
attr_obj, index);
if (!attr_field_obj) {
struct bt_value *value_obj = NULL;
struct bt_value *attr_field_obj = NULL;
- BT_ASSERT(attr_obj);
- BT_ASSERT(index < bt_value_array_get_length(attr_obj));
+ BT_ASSERT_DBG(attr_obj);
+ BT_ASSERT_DBG(index < bt_value_array_get_length(attr_obj));
attr_field_obj =
bt_value_array_borrow_element_by_index(attr_obj, index);
if (!attr_field_obj) {
struct bt_value *value_obj = NULL;
struct bt_value *attr_field_obj = NULL;
- BT_ASSERT(attr_obj);
- BT_ASSERT(name);
+ BT_ASSERT_DBG(attr_obj);
+ BT_ASSERT_DBG(name);
attr_field_obj = bt_attributes_borrow_field_by_name(attr_obj, name);
if (!attr_field_obj) {
BT_LOGD("Cannot find attributes object's field by name: "