X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=69568c3c2e99f717b846fcd96435095891fe6f98;hb=bca8d5efcef2d68f8aebf78e2d7c907064e8f07d;hp=a0d9e33546a138f5bde0d2335fbfb886f71d9904;hpb=1eb7e4731446efc1891353a6e9c913649449f326;p=lttng-tools.git diff --git a/src/common/consumer.c b/src/common/consumer.c index a0d9e3354..69568c3c2 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -1267,8 +1267,8 @@ void lttng_consumer_sync_trace_file(struct lttng_consumer_stream *stream, ret = posix_fadvise(outfd, orig_offset - stream->max_sb_size, stream->max_sb_size, POSIX_FADV_DONTNEED); if (ret && ret != -ENOSYS) { - errno = -ret; - PERROR("posix_fadvise"); + errno = ret; + PERROR("posix_fadvise on fd %i", outfd); } }