X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=converter%2Fbabeltrace-log.c;h=53826c33ee32e12838e952ac680a5127c41fe985;hp=16f9a17929026a060282faf4b70a631ff7bf7f1e;hb=209209be7f87974d7b4acee9af37a51aced870f3;hpb=408a2c4ddcbc017d56e279aa867e74f503fa094c diff --git a/converter/babeltrace-log.c b/converter/babeltrace-log.c index 16f9a179..53826c33 100644 --- a/converter/babeltrace-log.c +++ b/converter/babeltrace-log.c @@ -35,7 +35,7 @@ #include #include -#include +#include #include #define USEC_PER_SEC 1000000UL @@ -212,7 +212,7 @@ retry: write_packet_header(pos, s_uuid); write_packet_context(pos); if (attempt++ == 1) { - fprintf(stdout, "[Error] Line too large for packet size (%zukB) (discarded)\n", + fprintf(stderr, "[Error] Line too large for packet size (%zukB) (discarded)\n", pos->packet_size / CHAR_BIT / 1024); return; } @@ -294,8 +294,8 @@ int main(int argc, char **argv) ret = parse_args(argc, argv); if (ret) { - fprintf(stdout, "Error: invalid argument.\n"); - usage(stdout); + fprintf(stderr, "Error: invalid argument.\n"); + usage(stderr); goto error; }