From: Mathieu Desnoyers Date: Thu, 1 Mar 2012 03:33:17 +0000 (-0500) Subject: Fix: consumer printf type should match ssize_t (%zd) X-Git-Tag: v2.0.0-rc3~22 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=630543f28cee9c85a569bebd767bb40b2564bd42;p=lttng-tools.git Fix: consumer printf type should match ssize_t (%zd) Signed-off-by: Mathieu Desnoyers --- diff --git a/src/common/kernel-consumer/kernel-consumer.c b/src/common/kernel-consumer/kernel-consumer.c index 608265f96..823b4a28a 100644 --- a/src/common/kernel-consumer/kernel-consumer.c +++ b/src/common/kernel-consumer/kernel-consumer.c @@ -106,7 +106,7 @@ ssize_t lttng_kconsumer_on_read_subbuffer_splice( (unsigned long)offset, fd); ret = splice(fd, &offset, ctx->consumer_thread_pipe[1], NULL, len, SPLICE_F_MOVE | SPLICE_F_MORE); - DBG("splice chan to pipe ret %ld", ret); + DBG("splice chan to pipe ret %zd", ret); if (ret < 0) { errno = -ret; perror("Error in relay splice"); @@ -115,7 +115,7 @@ ssize_t lttng_kconsumer_on_read_subbuffer_splice( ret = splice(ctx->consumer_thread_pipe[0], NULL, outfd, NULL, ret, SPLICE_F_MOVE | SPLICE_F_MORE); - DBG("splice pipe to file %ld", ret); + DBG("splice pipe to file %zd", ret); if (ret < 0) { errno = -ret; perror("Error in file splice");