projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update pretty print output
[babeltrace.git]
/
formats
/
ctf-text
/
types
/
enum.c
diff --git
a/formats/ctf-text/types/enum.c
b/formats/ctf-text/types/enum.c
index cf8cc4fa85d19364cf13e3d1bf3ec5f528ab5153..381491a4dc81e68560ac6c1467c4b107b339d6af 100644
(file)
--- a/
formats/ctf-text/types/enum.c
+++ b/
formats/ctf-text/types/enum.c
@@
-33,19
+33,16
@@
int ctf_text_enum_write(struct stream_pos *ppos, struct definition *definition)
if (pos->dummy)
return 0;
if (pos->dummy)
return 0;
- if (
definition->index != 0 && definition->index != INT_MAX
)
+ if (
pos->field_nr++ != 0
)
fprintf(pos->fp, ",");
fprintf(pos->fp, ",");
- if (definition->index != INT_MAX)
- fprintf(pos->fp, " ");
+ fprintf(pos->fp, " ");
if (pos->print_names)
fprintf(pos->fp, "%s = ",
g_quark_to_string(definition->name));
if (pos->print_names)
fprintf(pos->fp, "%s = ",
g_quark_to_string(definition->name));
- //print_pos_tabs(pos);
fprintf(pos->fp, "(");
pos->depth++;
ret = generic_rw(ppos, &integer_definition->p);
fprintf(pos->fp, "(");
pos->depth++;
ret = generic_rw(ppos, &integer_definition->p);
- //print_pos_tabs(pos);
fprintf(pos->fp, " :");
qs = enum_definition->value;
fprintf(pos->fp, " :");
qs = enum_definition->value;
@@
-61,7
+58,6
@@
int ctf_text_enum_write(struct stream_pos *ppos, struct definition *definition)
fprintf(pos->fp, "%s\n", str);
}
pos->depth--;
fprintf(pos->fp, "%s\n", str);
}
pos->depth--;
- //print_pos_tabs(pos);
fprintf(pos->fp, " )");
return ret;
}
fprintf(pos->fp, " )");
return ret;
}
This page took
0.025026 seconds
and
4
git commands to generate.