X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fkernel-consumer%2Fkernel-consumer.c;h=9abee1de8ad5d3bb01efdf2b04ada6270811de18;hp=608265f9627af4291148fe4444e2dbd036883277;hb=d14d33bf091e72b23b1f90ea18a0a01bed098b76;hpb=4078b776c9382a540125d810bcd7cca3a8c84bc8 diff --git a/src/common/kernel-consumer/kernel-consumer.c b/src/common/kernel-consumer/kernel-consumer.c index 608265f96..9abee1de8 100644 --- a/src/common/kernel-consumer/kernel-consumer.c +++ b/src/common/kernel-consumer/kernel-consumer.c @@ -2,19 +2,18 @@ * Copyright (C) 2011 - Julien Desfossez * Mathieu Desnoyers * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; only version 2 - * of the License. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2 only, + * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #define _GNU_SOURCE @@ -106,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"); @@ -115,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");