X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Ftext%2FtextDump.c;h=e522595fabd8d87f0ead8e06b03550ded6d8cd19;hb=c0cb4d12b6441b5964a5017e8c58349bec15e7b8;hp=a823d948b3dfaf8ab3350a3342e308b90154241c;hpb=3813c77b03566b292b48f5687cf022b68afeb75d;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/text/textDump.c b/ltt/branches/poly/lttv/modules/text/textDump.c index a823d948..e522595f 100644 --- a/ltt/branches/poly/lttv/modules/text/textDump.c +++ b/ltt/branches/poly/lttv/modules/text/textDump.c @@ -70,10 +70,15 @@ print_tree(FILE *fp, GString *indent, LttvAttribute *tree) LttvAttributeType type; + gboolean is_named; + nb = lttv_attribute_get_number(tree); for(i = 0 ; i < nb ; i++) { - type = lttv_attribute_get(tree, i, &name, &value); - fprintf(fp, "%s%s: ", indent->str, g_quark_to_string(name)); + type = lttv_attribute_get(tree, i, &name, &value, &is_named); + if(is_named) + fprintf(fp, "%s%s: ", indent->str, g_quark_to_string(name)); + else + fprintf(fp, "%s%lu: ", indent->str, name); switch(type) { case LTTV_INT: