Fix integer/float/string read: keep value in definition structure
[babeltrace.git] / formats / ctf / metadata / ctf-visitor-generate-io-struct.c
index 1981832e4bb6a7372a32cc5073912ae9787a9f52..f54307118f2601029688326f231360eb7d017ea4 100644 (file)
@@ -1859,6 +1859,11 @@ int ctf_trace_visit(FILE *fd, int depth, struct ctf_node *node, struct ctf_trace
                fprintf(fd, "[error] %s: missing uuid field in trace declaration\n", __func__);
                goto error;
        }
+       if (!CTF_TRACE_FIELD_IS_SET(trace, byte_order)) {
+               ret = -EPERM;
+               fprintf(fd, "[error] %s: missing byte_order field in trace declaration\n", __func__);
+               goto error;
+       }
 
        parent_def_scope = NULL;
        if (trace->packet_header_decl) {
This page took 0.027053 seconds and 4 git commands to generate.