X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf-text%2Fctf-text.c;h=92ad42632ece6049e5153d15325ff47a6ff14695;hp=aa07b7cab770a55e25d59a09bdcef8270cc9aaa1;hb=9ff2b8adeaadc0a8fbd8c5aa23f2cbadf2f1a55f;hpb=9e88d150c4119a0c6d6288cad6d6db87df7bac4b diff --git a/formats/ctf-text/ctf-text.c b/formats/ctf-text/ctf-text.c index aa07b7ca..92ad4263 100644 --- a/formats/ctf-text/ctf-text.c +++ b/formats/ctf-text/ctf-text.c @@ -218,7 +218,7 @@ int ctf_text_write_event(struct stream_pos *ppos, struct ctf_stream_definition * container_of(ppos, struct ctf_text_stream_pos, parent); struct ctf_stream_declaration *stream_class = stream->stream_class; int field_nr_saved; - struct ctf_event *event_class; + struct ctf_event_declaration *event_class; struct ctf_event_definition *event; uint64_t id; int ret; @@ -236,8 +236,8 @@ int ctf_text_write_event(struct stream_pos *ppos, struct ctf_stream_definition * return -EINVAL; } event_class = g_ptr_array_index(stream_class->events_by_id, id); - if (!event) { - fprintf(stderr, "[error] Event id %" PRIu64 " is unknown.\n", id); + if (!event_class) { + fprintf(stderr, "[error] Event class id %" PRIu64 " is unknown.\n", id); return -EINVAL; }