X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fctf.c;h=137c11ec57033660565f0e458671bcd3ea01666b;hp=8f8af52517c407f1c32e80779f2fa35e69f717e1;hb=c829a65c9ea7621755f2d0acd39dad6dba00b44e;hpb=87148dc74de9861a656aa4f38f03b51743471049 diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 8f8af525..137c11ec 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -400,10 +400,12 @@ void print_uuid(FILE *fp, unsigned char *uuid) fprintf(fp, "%x", (unsigned int) uuid[i]); } -void ctf_print_discarded(FILE *fp, struct ctf_stream_definition *stream) +void ctf_print_discarded(FILE *fp, struct ctf_stream_definition *stream, + int end_stream) { - fprintf(fp, "[warning] Tracer discarded %" PRIu64 " events between [", - stream->events_discarded); + fprintf(fp, "[warning] Tracer discarded %" PRIu64 " events %sbetween [", + stream->events_discarded, + end_stream ? "at end of stream " : ""); if (opt_clock_cycles) { ctf_print_timestamp(fp, stream, stream->prev_cycles_timestamp); @@ -781,7 +783,9 @@ void ctf_packet_seek(struct bt_stream_pos *stream_pos, size_t index, int whence) */ if (file_stream->parent.events_discarded) { fflush(stdout); - ctf_print_discarded(stderr, &file_stream->parent); + ctf_print_discarded(stderr, + &file_stream->parent, + 1); file_stream->parent.events_discarded = 0; } }