projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
roadmap update
[lttv.git]
/
genevent-new
/
genevent.c
diff --git
a/genevent-new/genevent.c
b/genevent-new/genevent.c
index 88cecb69c5d5c821ac971bafee618926c328cf78..9113a11ceec1d968ed2941ad667be46d86a60e8b 100644
(file)
--- a/
genevent-new/genevent.c
+++ b/
genevent-new/genevent.c
@@
-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, " {\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");
fprintf(fd, ",\n");
}
fprintf(fd, "};\n");
This page took
0.027912 seconds
and
4
git commands to generate.