lib: assign a unique ID to each pre/postcond. and report it on failure
[babeltrace.git] / src / lib / trace-ir / field-path.c
index 60e0aca992f945481715c04db88f146b5af82cbf..f7d7551b0e052f34d5ce8ca408d8853d031eb0fa 100644 (file)
@@ -87,15 +87,18 @@ const struct bt_field_path_item *bt_field_path_borrow_item_by_index_const(
 enum bt_field_path_item_type bt_field_path_item_get_type(
                const struct bt_field_path_item *field_path_item)
 {
-       BT_ASSERT_PRE_DEV_NON_NULL(field_path_item, "Field path item");
+       BT_ASSERT_PRE_DEV_NON_NULL("field-path-item", field_path_item,
+               "Field path item");
        return field_path_item->type;
 }
 
 uint64_t bt_field_path_item_index_get_index(
                const struct bt_field_path_item *field_path_item)
 {
-       BT_ASSERT_PRE_DEV_NON_NULL(field_path_item, "Field path item");
-       BT_ASSERT_PRE_DEV(field_path_item->type == BT_FIELD_PATH_ITEM_TYPE_INDEX,
+       BT_ASSERT_PRE_DEV_NON_NULL("field-path-item", field_path_item,
+               "Field path item");
+       BT_ASSERT_PRE_DEV("is-index-field-path-item",
+               field_path_item->type == BT_FIELD_PATH_ITEM_TYPE_INDEX,
                "Field path item is not an index field path item: "
                "addr=%p, type=%s", field_path_item,
                bt_field_path_item_type_string(field_path_item->type));
This page took 0.023625 seconds and 4 git commands to generate.