lib: msg. iter. inactivity message has a simple CS, not a default CS
[babeltrace.git] / src / plugins / common / muxing / muxing.c
index 15e9427d6c17e2c73046f8b7e6a86f74362ef9f4..cd97798acc0309a3b77a0a0fc028119e8bd883a5 100644 (file)
@@ -27,6 +27,7 @@
 #include <string.h>
 
 #include "common/assert.h"
+#include "common/common.h"
 #include "common/macros.h"
 #include "common/uuid.h"
 
@@ -74,7 +75,7 @@ int message_type_weight(const bt_message_type msg_type)
                weight = 0;
                break;
        default:
-               abort();
+               bt_common_abort();
        }
 
        return weight;
@@ -460,7 +461,7 @@ const bt_stream *borrow_stream(const bt_message *msg)
        case BT_MESSAGE_TYPE_MESSAGE_ITERATOR_INACTIVITY:
                goto end;
        default:
-               abort();
+               bt_common_abort();
        }
 
 end:
@@ -819,9 +820,9 @@ int compare_messages_same_type(struct messages_to_compare *msgs)
        case BT_MESSAGE_TYPE_MESSAGE_ITERATOR_INACTIVITY:
        {
                const bt_clock_snapshot *left_cs =
-                       bt_message_message_iterator_inactivity_borrow_default_clock_snapshot_const(msgs->left.msg);
+                       bt_message_message_iterator_inactivity_borrow_clock_snapshot_const(msgs->left.msg);
                const bt_clock_snapshot *right_cs =
-                       bt_message_message_iterator_inactivity_borrow_default_clock_snapshot_const(msgs->right.msg);
+                       bt_message_message_iterator_inactivity_borrow_clock_snapshot_const(msgs->right.msg);
 
                ret = compare_clock_snapshots_and_clock_classes(
                        left_cs, right_cs);
@@ -832,7 +833,7 @@ int compare_messages_same_type(struct messages_to_compare *msgs)
                break;
        }
        default:
-               abort();
+               bt_common_abort();
        }
 
 end:
@@ -856,14 +857,14 @@ int common_muxing_compare_messages(const bt_message *left_msg,
        msgs.right.trace = borrow_trace(right_msg);
        msgs.right.stream = borrow_stream(right_msg);
 
-       /* Same timestamp: compare trace names. */
-       ret = compare_messages_by_trace_name(&msgs);
+       /* Same timestamp: compare trace UUIDs. */
+       ret = compare_messages_by_trace_uuid(&msgs);
        if (ret) {
                goto end;
        }
 
-       /* Same timestamp and trace name: compare trace UUIDs. */
-       ret = compare_messages_by_trace_uuid(&msgs);
+       /* Same timestamp and trace UUID: compare trace names. */
+       ret = compare_messages_by_trace_name(&msgs);
        if (ret) {
                goto end;
        }
This page took 0.025003 seconds and 4 git commands to generate.