From d0d3518f0e21a83fb8e33511dad2b251178ddbd5 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 29 Feb 2012 22:33:17 -0500 Subject: [PATCH] Fix: consumer printf type should match ssize_t (%zd) Signed-off-by: Mathieu Desnoyers Signed-off-by: David Goulet --- src/common/kernel-consumer/kernel-consumer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/kernel-consumer/kernel-consumer.c b/src/common/kernel-consumer/kernel-consumer.c index 2054a865f..f7d4540cf 100644 --- a/src/common/kernel-consumer/kernel-consumer.c +++ b/src/common/kernel-consumer/kernel-consumer.c @@ -105,7 +105,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"); @@ -114,7 +114,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"); -- 2.34.1