X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=genevent%2Fgenevent.c;h=5a628ce88901c5ba7eca1e5f187e7c367d59c065;hb=d9a67054dc8f62091fa9d05142244d64c0de7f1a;hp=316f15b7a076bf8e44be56b2943a1deb94a1ccf9;hpb=276a9e6fc8f3f6cb40f759a429cbd17c0b437043;p=lttv.git diff --git a/genevent/genevent.c b/genevent/genevent.c index 316f15b7..5a628ce8 100644 --- a/genevent/genevent.c +++ b/genevent/genevent.c @@ -299,13 +299,9 @@ printStruct(FILE * fp, int len, void ** array, char * name, char * facName, if( td->type == STRING || td->type == SEQUENCE || td->type == ARRAY) { (*hasStrSeq)++; - } -// if (*whichTypeFirst == 0) { -// *whichTypeFirst = 1; //struct first -// } + } else { if (flag == 0) { flag = 1; - fprintf(fp,"struct %s_%s",name, facName); if (structCount) { fprintf(fp, "_%d {\n",++*structCount); @@ -315,19 +311,7 @@ printStruct(FILE * fp, int len, void ** array, char * name, char * facName, } fprintf(fp, "\t%s %s; /* %s */\n", getTypeStr(td),fld->name,fld->description ); -#if 0 - } else { - if (*whichTypeFirst == 0) { - //string or sequence or array first - *whichTypeFirst = 2; - } - (*hasStrSeq)++; - if(flag) { - fprintf(fp,"} __attribute__ ((packed));\n\n"); - } - flag = 0; } -#endif //0 } if(flag) {