struct ctf_stream_pos *pos =
container_of(ppos, struct ctf_stream_pos, parent);
- if (elem->id == CTF_TYPE_INTEGER) {
+ if (elem->id == BT_CTF_TYPE_ID_INTEGER) {
struct declaration_integer *integer_declaration =
container_of(elem, struct declaration_integer, p);
g_string_insert_len(array_definition->string,
0, (char *) ctf_get_pos_addr(pos),
array_declaration->len);
- if (!ctf_move_pos(pos, array_declaration->len * CHAR_BIT))
- return -EFAULT;
- return 0;
+ /*
+ * We want to populate both the string
+ * and the underlying values, so carry
+ * on calling bt_array_rw().
+ */
}
}
}
struct ctf_stream_pos *pos =
container_of(ppos, struct ctf_stream_pos, parent);
- if (elem->id == CTF_TYPE_INTEGER) {
+ if (elem->id == BT_CTF_TYPE_ID_INTEGER) {
struct declaration_integer *integer_declaration =
container_of(elem, struct declaration_integer, p);