projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Only show packet metadata read in debug mode
[babeltrace.git]
/
formats
/
ctf
/
ctf.c
diff --git
a/formats/ctf/ctf.c
b/formats/ctf/ctf.c
index 13232692b6be62720bd918b75c7873f28dac5264..41aa35d60fd6a67e23b128a60a258ed03215bab2 100644
(file)
--- a/
formats/ctf/ctf.c
+++ b/
formats/ctf/ctf.c
@@
-457,7
+457,11
@@
int ctf_open_trace_metadata_packet_read(struct ctf_trace *td, FILE *in,
ret = -EINVAL;
break;
}
- printf("read %s\n", buf);
+ if (babeltrace_debug) {
+ fprintf(stdout, "[debug] metadata packet read: %s\n",
+ buf);
+ }
+
writelen = fwrite(buf, sizeof(char), readlen, out);
if (writelen < readlen) {
ret = -EIO;
This page took
0.023503 seconds
and
4
git commands to generate.