Always evaluate BT_ASSERT(); add BT_ASSERT_DBG() for debug mode only
[babeltrace.git] / src / plugins / ctf / fs-src / data-stream-file.c
index 5f811214f917634a980854e1dd2cf3fe1f14adbc..c0a8754e9b7cb33c879e61c2aad74af541928585 100644 (file)
@@ -48,7 +48,7 @@
 static inline
 size_t remaining_mmap_bytes(struct ctf_fs_ds_file *ds_file)
 {
-       BT_ASSERT(ds_file->mmap_len >= ds_file->request_offset);
+       BT_ASSERT_DBG(ds_file->mmap_len >= ds_file->request_offset);
        return ds_file->mmap_len - ds_file->request_offset;
 }
 
This page took 0.023336 seconds and 4 git commands to generate.