Fix: consumer printf type should match ssize_t (%zd)
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 1 Mar 2012 03:33:17 +0000 (22:33 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 1 Mar 2012 18:03:15 +0000 (13:03 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/kernel-consumer/kernel-consumer.c

index 2054a865f75d76e78b19ec6b6d2e84718271eae1..f7d4540cf9d55b25d4a8e5f994bc738e1948d84b 100644 (file)
@@ -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);
                                (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");
                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);
 
                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");
                if (ret < 0) {
                        errno = -ret;
                        perror("Error in file splice");
This page took 0.025648 seconds and 4 git commands to generate.