X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=genevent-new%2Fparser.c;h=1ab1b73bf7bf256ac23f468d95482c31584cfc33;hb=8729b50b2b58600781ccc83698c662d0819626ad;hp=3d454a6afde81ea7a874c5c4ae1bbd466070bf5a;hpb=73f934752543f912485906fe16a4c93ee3b9f77b;p=lttv.git diff --git a/genevent-new/parser.c b/genevent-new/parser.c index 3d454a6a..1ab1b73b 100644 --- a/genevent-new/parser.c +++ b/genevent-new/parser.c @@ -234,18 +234,18 @@ void getTypeAttributes(parse_file_t *in, type_descriptor_t *t, else token = getName(in); if(!strcmp("network", token)) { t->network = 1; + } } else if(!strcmp("write",token)) { getEqual(in); car = seekNextChar(in); if(car == EOF) in->error(in,"write type was expected (custom?)"); else if(car == '\"') token = getQuotedString(in); else token = getName(in); - if(!strcmp("custom", token)) - t->network = 1; + if(!strcmp("custom", token)) { + t->custom_write = 1; + } } } - - } } /************************************************************************** @@ -350,7 +350,7 @@ void getFacilityAttributes(parse_file_t *in, facility_t *fac) } else if(!strcmp("arch", token)) { getEqual(in); car = seekNextChar(in); - if(car == '\"') fac->name = allocAndCopy(getQuotedString(in)); + if(car == '\"') fac->arch = allocAndCopy(getQuotedString(in)); else fac->arch = allocAndCopy(getName(in)); } }