-
- name = bt_ctf_field_type_enumeration_get_mapping_name_unsigned(
- enumeration_type, value);
+ iter = bt_ctf_field_type_enumeration_find_mappings_by_unsigned_value(
+ field->type, value);
+ if (!iter) {
+ goto error_put_container_type;
+ }
+ (void) bt_ctf_field_type_enumeration_mapping_iterator_get_unsigned(
+ iter, &name, NULL, NULL);