lib: rename BT_ASSERT_PRE_BEGIN_LE_END() -> BT_..._MSG_CS_BEGIN_LE_END()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 21 Apr 2020 14:42:13 +0000 (10:42 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 23 Apr 2020 03:45:20 +0000 (23:45 -0400)
This adds a namespace as BT_ASSERT_PRE_MSG_CS_BEGIN_LE_END() is now part
of the common `assert-cond.h` header.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I5f3197a41b240f58fb7da5518053c792aab5da9d
Reviewed-on: https://review.lttng.org/c/babeltrace/+/3440

src/lib/assert-cond.h
src/lib/graph/message/discarded-items.c

index 317ba23b55fb402386e3255a589cf529f13fbe35..4de066b3cda2837745fdb8217c596b41198e7e2e 100644 (file)
 #define BT_ASSERT_PRE_DEV_MSG_NON_NULL(_msg_iter)                      \
        BT_ASSERT_PRE_DEV_NON_NULL(_msg_iter, _BT_ASSERT_PRE_MSG_NAME)
 
-#define BT_ASSERT_PRE_BEGIN_LE_END(_msg_iter, _begin, _end)            \
+#define BT_ASSERT_PRE_MSG_CS_BEGIN_LE_END(_msg_iter, _begin, _end)     \
        BT_ASSERT_PRE(                                                  \
                _begin <= _end,                                         \
                "Beginning default clock snapshot value is greater "    \
index 975d22d7b3d0f0d772bbd224b717d9a8c6165a6d..53420e9384ddea161cfb19340d5e404ff52eb7ab 100644 (file)
@@ -214,7 +214,7 @@ struct bt_message *bt_message_discarded_events_create_with_default_clock_snapsho
                uint64_t end_raw_value)
 {
        BT_ASSERT_PRE_DEV_NO_ERROR();
-       BT_ASSERT_PRE_BEGIN_LE_END(message_iterator,
+       BT_ASSERT_PRE_MSG_CS_BEGIN_LE_END(message_iterator,
                beginning_raw_value, end_raw_value);
 
        return create_discarded_items_message(message_iterator,
@@ -293,7 +293,7 @@ struct bt_message *bt_message_discarded_packets_create_with_default_clock_snapsh
                uint64_t end_raw_value)
 {
        BT_ASSERT_PRE_DEV_NO_ERROR();
-       BT_ASSERT_PRE_BEGIN_LE_END(message_iterator,
+       BT_ASSERT_PRE_MSG_CS_BEGIN_LE_END(message_iterator,
                beginning_raw_value, end_raw_value);
 
        return create_discarded_items_message(message_iterator,
This page took 0.025402 seconds and 4 git commands to generate.