Fix: add missing semicolons after MSG, DBG, ERR print macros
[lttng-tools.git] / src / common / consumer.c
index a96d5165eb9c73e816f13a98427d3f7ec9498f03..a0d9e33546a138f5bde0d2335fbfb886f71d9904 100644 (file)
@@ -1022,7 +1022,7 @@ struct lttng_consumer_channel *consumer_allocate_channel(uint64_t key,
 
        CDS_INIT_LIST_HEAD(&channel->streams.head);
 
-       DBG("Allocated channel (key %" PRIu64 ")", channel->key)
+       DBG("Allocated channel (key %" PRIu64 ")", channel->key);
 
 end:
        return channel;
@@ -1266,8 +1266,9 @@ 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) {
-               WARN("posix_fadvise() error (%i)", ret);
+       if (ret && ret != -ENOSYS) {
+               errno = -ret;
+               PERROR("posix_fadvise");
        }
 }
 
This page took 0.024698 seconds and 4 git commands to generate.