From: Mathieu Desnoyers Date: Sun, 21 Jul 2013 23:07:35 +0000 (-0400) Subject: Fix: format string type mismatch X-Git-Tag: v2.2.3~2 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;ds=sidebyside;h=c5c46de1550f0c000465a43bc1647e246df87f19;p=lttng-tools.git Fix: format string type mismatch Signed-off-by: Mathieu Desnoyers --- diff --git a/src/common/consumer.c b/src/common/consumer.c index 4a1e6d23e..912988977 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -2241,7 +2241,7 @@ restart: pipe_len = lttng_pipe_read(ctx->consumer_metadata_pipe, &stream, sizeof(stream)); if (pipe_len < 0) { - ERR("read metadata stream, ret: %ld", pipe_len); + ERR("read metadata stream, ret: %zd", pipe_len); /* * Continue here to handle the rest of the streams. */ @@ -2449,7 +2449,7 @@ void *consumer_thread_data_poll(void *data) pipe_readlen = lttng_pipe_read(ctx->consumer_data_pipe, &new_stream, sizeof(new_stream)); if (pipe_readlen < 0) { - ERR("Consumer data pipe ret %ld", pipe_readlen); + ERR("Consumer data pipe ret %zd", pipe_readlen); /* Continue so we can at least handle the current stream(s). */ continue; }