Fix babeltrace-log incorrect timestamp type
[babeltrace.git] / formats / ctf-text / ctf-text.c
index 1500d735c18c437be2fc9c0744498ce9ffd222e8..d169caac803f80ded578db162837b184c83b3997 100644 (file)
@@ -99,7 +99,7 @@ int ctf_text_write_event(struct stream_pos *ppos,
        struct ctf_stream_class *stream_class = stream->stream_class;
        int field_nr_saved;
        struct ctf_event *event_class;
-       struct ctf_file_event *event;
+       struct ctf_stream_event *event;
        uint64_t id = 0;
        int ret;
 
@@ -145,7 +145,7 @@ int ctf_text_write_event(struct stream_pos *ppos,
                return -EINVAL;
        }
 
-       if (stream->timestamp) {
+       if (stream->has_timestamp) {
                if (pos->print_names)
                        fprintf(pos->fp, "timestamp = ");
                else
This page took 0.022642 seconds and 4 git commands to generate.