X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;fp=src%2Fcommon%2Fconsumer.c;h=2ab9b2e34dbc4e3f54cc84c74ebd39ad528bb5dd;hb=8585263fc2526cb0841a8a47e6fb2cf9c30a49ce;hp=3802eff659f9fc93788a178633ae3a7b50af4986;hpb=0f16c2144ae2c44bb1157cbe3f73fade91cc37a2;p=lttng-tools.git diff --git a/src/common/consumer.c b/src/common/consumer.c index 3802eff65..2ab9b2e34 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -1255,8 +1255,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); } }