From: Mathieu Desnoyers Date: Mon, 16 Apr 2012 14:33:55 +0000 (-0400) Subject: Clarify warning message for events discarded X-Git-Tag: v1.0.0-rc1~4 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=a0b34fbba498a8a447357adf5920ac2c8a22f026 Clarify warning message for events discarded Reported-by: Fredrik Oestman Signed-off-by: Mathieu Desnoyers --- diff --git a/formats/ctf-text/ctf-text.c b/formats/ctf-text/ctf-text.c index 92ad4263..1d29390c 100644 --- a/formats/ctf-text/ctf-text.c +++ b/formats/ctf-text/ctf-text.c @@ -249,7 +249,7 @@ int ctf_text_write_event(struct stream_pos *ppos, struct ctf_stream_definition * ctf_print_timestamp(stderr, stream, stream->prev_timestamp); fprintf(stderr, "] and ["); ctf_print_timestamp(stderr, stream, stream->prev_timestamp_end); - fprintf(stderr, "]. You should consider increasing the buffer size.\n"); + fprintf(stderr, "]. You should consider recording a new trace with larger buffers or with fewer events enabled.\n"); fflush(stderr); stream->events_discarded = 0; } diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 15dd3f1e..bff84fe1 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -650,7 +650,7 @@ void ctf_packet_seek(struct stream_pos *stream_pos, size_t index, int whence) fprintf(stderr, "] and ["); ctf_print_timestamp(stderr, &file_stream->parent, file_stream->parent.prev_timestamp_end); - fprintf(stderr, "]. You should consider increasing the buffer size.\n"); + fprintf(stderr, "]. You should consider recording a new trace with larger buffers or with fewer events enabled.\n"); fflush(stderr); } file_stream->parent.events_discarded = 0;