fix enums
[lttv.git] / genevent-new / genevent.c
index 88cecb69c5d5c821ac971bafee618926c328cf78..9113a11ceec1d968ed2941ad667be46d86a60e8b 100644 (file)
@@ -411,7 +411,8 @@ int print_type_declaration(type_descriptor_t * td, FILE *fd, unsigned int tabs,
                        fprintf(fd, " {\n");
                        for(unsigned int i=0;i<td->labels.position;i++){
                                print_tabs(1, fd);
-                               fprintf(fd, "LTTNG_%s", ((char*)(td->labels.array[i])));
+                               fprintf(fd, "LTTNG_%s = %d", ((char*)td->labels.array[i]),
+            (*(int*)td->labels_values.array[i]));
                                fprintf(fd, ",\n");
                        }
                        fprintf(fd, "};\n");
This page took 0.0315 seconds and 4 git commands to generate.