ctf.fs: bt_ctf_notif_iter_create(): assert() that all medops exist
[babeltrace.git] / formats / ctf-text / types / enum.c
index 9df8da84e40615058f2f1d3e061d76358af9ff56..5ab13fb411813655ad474b545c7043d13a384e07 100644 (file)
@@ -30,7 +30,7 @@
 #include <stdio.h>
 #include <stdint.h>
 
-int ctf_text_enum_write(struct stream_pos *ppos, struct definition *definition)
+int ctf_text_enum_write(struct bt_stream_pos *ppos, struct bt_definition *definition)
 {
        struct definition_enum *enum_definition =
                container_of(definition, struct definition_enum, p);
@@ -71,7 +71,7 @@ int ctf_text_enum_write(struct stream_pos *ppos, struct definition *definition)
                        if (pos->field_nr++ != 0)
                                fprintf(pos->fp, ",");
                        fprintf(pos->fp, " ");
-                       fprintf(pos->fp, "%s", str);
+                       fprintf(pos->fp, "\"%s\"", str);
                }
        } else {
                fprintf(pos->fp, " <unknown>");
This page took 0.02365 seconds and 4 git commands to generate.