byte order from arch only needs to be set when not using packet metadata
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 25 Jul 2011 21:14:02 +0000 (17:14 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 25 Jul 2011 21:14:02 +0000 (17:14 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/ctf.c

index 4043055824b5e24fe253a7835ce9cc95fd989ab1..d685b6cd70f4b9ef9362747bb7fa8862a430f086 100644 (file)
@@ -607,11 +607,12 @@ 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)
                        goto end_packet_read;
+       } else {
+               td->byte_order = BYTE_ORDER;
        }
 
        scanner = ctf_scanner_alloc(fp);
This page took 0.024675 seconds and 4 git commands to generate.