- (void) bt_ctf_field_type_structure_get_field(
- structure_type, &name, NULL, i);
- fprintf(stderr, "Field %s failed to serialize\n",
- name ? name : "NULL");
+ this_ret = bt_ctf_field_type_structure_get_field(
+ structure_type, &name, NULL, i);
+ assert(this_ret == 0);
+ BT_LOGW("Cannot serialize structure field's field: "
+ "struct-field-addr=%p, field-addr=%p, "
+ "field-name=\"%s\", index=%" PRId64,
+ field, member, name, i);