X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fctf-writer%2Fwriter.c;h=a4ad7fe852bc46ec32a3fbae0e85ad9f1e60a792;hb=f6ccaed94e575af57fe6bf38154771bee4871a2a;hp=ce884ea6d56e9c1e7d8a1e8708c68f8abb0c59bd;hpb=464ebc311d460b29f681703aea0aa00eef9e6475;p=babeltrace.git diff --git a/lib/ctf-writer/writer.c b/lib/ctf-writer/writer.c index ce884ea6..a4ad7fe8 100644 --- a/lib/ctf-writer/writer.c +++ b/lib/ctf-writer/writer.c @@ -41,6 +41,7 @@ #include #include #include +#include #include #include #include @@ -156,7 +157,7 @@ struct bt_ctf_writer *bt_ctf_writer_create(const char *path) /* Default to little-endian */ ret = bt_ctf_writer_set_byte_order(writer, BT_BYTE_ORDER_NATIVE); - assert(ret == 0); + BT_ASSERT(ret == 0); /* Create trace directory if necessary and open a metadata file */ if (g_mkdir_with_parents(path, S_IRWXU | S_IRWXG)) {