X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf-text%2Ftypes%2Fenum.c;h=b973d494b195dcd67d65931979b3d28dc06996a7;hp=4a3eac0feecfb93e7f401b4abbf7bee8ada932ab;hb=de913cfdf87242ec3ff54c72a318ebb8714e5465;hpb=07bc033e9dbd6de26f3a59728e09cefd1b5f3da6 diff --git a/formats/ctf-text/types/enum.c b/formats/ctf-text/types/enum.c index 4a3eac0f..b973d494 100644 --- a/formats/ctf-text/types/enum.c +++ b/formats/ctf-text/types/enum.c @@ -3,7 +3,9 @@ * * Enumeration mapping strings (quarks) from/to integers. * - * Copyright 2010, 2011 - Mathieu Desnoyers + * Copyright 2010-2011 EfficiOS Inc. and Linux Foundation + * + * Author: Mathieu Desnoyers * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -31,6 +33,9 @@ int ctf_text_enum_write(struct stream_pos *ppos, struct definition *definition) int i, ret; int field_nr_saved; + if (!print_field(definition)) + return 0; + if (pos->dummy) return 0; @@ -39,7 +44,7 @@ int ctf_text_enum_write(struct stream_pos *ppos, struct definition *definition) fprintf(pos->fp, " "); if (pos->print_names) fprintf(pos->fp, "%s = ", - g_quark_to_string(definition->name)); + rem_(g_quark_to_string(definition->name))); field_nr_saved = pos->field_nr; pos->field_nr = 0;