Signed-off-by: Michael Jeanson <mjean...@efficios.com>
---
 formats/ctf/ctf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c
index 74fcb5b..19f61b5 100644
--- a/formats/ctf/ctf.c
+++ b/formats/ctf/ctf.c
@@ -906,7 +906,7 @@ void ctf_packet_seek(struct bt_stream_pos *stream_pos, 
size_t index, int whence)
                pos->packet_size = WRITE_PACKET_LEN;
                off = posix_fallocate(pos->fd, pos->mmap_offset,
                                      pos->packet_size / CHAR_BIT);
-               assert(off >= 0);
+               assert(off == 0);
                pos->offset = 0;
        } else {
        read_next_packet:
-- 
1.9.1


_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Reply via email to