Always evaluate BT_ASSERT(); add BT_ASSERT_DBG() for debug mode only
[babeltrace.git] / src / ctf-writer / stream.h
index 8c3d7d7c1152f798469f47936df5cb6f8fd79502..7cf0e620a20d005834e3f36017316c28cecba9aa 100644 (file)
@@ -29,8 +29,8 @@
  */
 
 #include "common/assert.h"
-#include "common/babeltrace.h"
-#include <babeltrace2/ctf-writer/stream.h>
+#include "common/macros.h"
+#include <babeltrace2-ctf-writer/stream.h>
 #include "ctfser/ctfser.h"
 #include <stdint.h>
 
@@ -61,7 +61,7 @@ static inline
 struct bt_ctf_stream_class_common *bt_ctf_stream_common_borrow_class(
                struct bt_ctf_stream_common *stream)
 {
-       BT_ASSERT(stream);
+       BT_ASSERT_DBG(stream);
        return stream->stream_class;
 }
 
@@ -80,7 +80,7 @@ int64_t bt_ctf_stream_common_get_id(struct bt_ctf_stream_common *stream)
        BT_CTF_ASSERT_PRE_NON_NULL(stream, "Stream");
        ret = stream->id;
        if (ret < 0) {
-               BT_LOGV("Stream's ID is not set: addr=%p, name=\"%s\"",
+               BT_LOGT("Stream's ID is not set: addr=%p, name=\"%s\"",
                        stream, bt_ctf_stream_common_get_name(stream));
        }
 
This page took 0.02374 seconds and 4 git commands to generate.