Fix read of text-based metadata traces
[babeltrace.git] / formats / ctf / ctf.c
index 098b7eb15d7d4589880243ed7d0ecdc66c7b4152..4043055824b5e24fe253a7835ce9cc95fd989ab1 100644 (file)
@@ -607,6 +607,7 @@ int ctf_open_trace_metadata_read(struct ctf_trace *td)
                goto end_stream;
        }
 
+       td->byte_order = BYTE_ORDER;
        if (packet_metadata(td, fp)) {
                ret = ctf_open_trace_metadata_stream_read(td, &fp, &buf);
                if (ret)
@@ -639,7 +640,7 @@ int ctf_open_trace_metadata_read(struct ctf_trace *td)
                goto end;
        }
        ret = ctf_visitor_construct_metadata(stdout, 0, &scanner->ast->root,
-                       td, BYTE_ORDER);
+                       td, td->byte_order);
        if (ret) {
                fprintf(stdout, "[error] Error in CTF metadata constructor %d\n", ret);
                goto end;
This page took 0.024179 seconds and 4 git commands to generate.