Update version to 1.0.0-rc1
[babeltrace.git] / formats / ctf-text / ctf-text.c
index a4316e8fd6d0fccf37f03fa021c2bd3a1380f5b9..1d29390c7a1c5a5ed034c31cd0965b728704ca4d 100644 (file)
@@ -211,14 +211,14 @@ const char *print_loglevel(int value)
 }
 
 static
-int ctf_text_write_event(struct stream_pos *ppos, struct ctf_stream *stream)
+int ctf_text_write_event(struct stream_pos *ppos, struct ctf_stream_definition *stream)
                         
 {
        struct ctf_text_stream_pos *pos =
                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 *stream)
                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;
        }
 
@@ -249,7 +249,7 @@ int ctf_text_write_event(struct stream_pos *ppos, struct ctf_stream *stream)
                ctf_print_timestamp(stderr, stream, stream->prev_timestamp);
                fprintf(stderr, "] and [");
                ctf_print_timestamp(stderr, stream, stream->prev_timestamp_end);
-               fprintf(stderr, "]. You should consider increasing the buffer size.\n");
+               fprintf(stderr, "]. You should consider recording a new trace with larger buffers or with fewer events enabled.\n");
                fflush(stderr);
                stream->events_discarded = 0;
        }
This page took 0.031957 seconds and 4 git commands to generate.