Update pretty print output
[babeltrace.git] / formats / ctf-text / types / enum.c
index 0cb902180b3254597cc1237f9fc106e45a3ef287..381491a4dc81e68560ac6c1467c4b107b339d6af 100644 (file)
@@ -33,10 +33,9 @@ int ctf_text_enum_write(struct stream_pos *ppos, struct definition *definition)
        if (pos->dummy)
                return 0;
 
-       if (definition->index != 0 && definition->index != INT_MAX)
+       if (pos->field_nr++ != 0)
                fprintf(pos->fp, ",");
-       if (definition->index != INT_MAX)
-               fprintf(pos->fp, " ");
+       fprintf(pos->fp, " ");
        if (pos->print_names)
                fprintf(pos->fp, "%s = ",
                        g_quark_to_string(definition->name));
This page took 0.022419 seconds and 4 git commands to generate.