X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf-text%2Ftypes%2Fenum.c;h=5ab13fb411813655ad474b545c7043d13a384e07;hb=f3985ab106d89d8e764c1a8dd0c8bda09b755d10;hp=9df8da84e40615058f2f1d3e061d76358af9ff56;hpb=c462e188f3e7819c7bc74f671038cdbf36e8c3c0;p=babeltrace.git diff --git a/formats/ctf-text/types/enum.c b/formats/ctf-text/types/enum.c index 9df8da84..5ab13fb4 100644 --- a/formats/ctf-text/types/enum.c +++ b/formats/ctf-text/types/enum.c @@ -30,7 +30,7 @@ #include #include -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, " ");