X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fctf.c;h=515e478357b3e519d1f4cb5e43fbf8bd5f83fb0d;hp=0c635d5701a987542409c8c1fcb8346e4e210832;hb=3838df2736cd000c3ada39f4ebbb310a0782e4fd;hpb=0f980a3595f61930659e392b1248c59490dd5a22 diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 0c635d57..515e4783 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -247,7 +247,7 @@ int create_stream_packet_index(struct trace_descriptor *td, field = struct_definition_get_field_from_index(td->ctf_trace.packet_header, len_index); assert(field->definition->declaration->id == CTF_TYPE_ARRAY); defarray = container_of(field->definition, struct definition_array, p); - assert(defarray->declaration->len == UUID_LEN); + assert(array_len(defarray) == UUID_LEN); assert(defarray->declaration->elem->id == CTF_TYPE_INTEGER); for (i = 0; i < UUID_LEN; i++) {