Always evaluate BT_ASSERT(); add BT_ASSERT_DBG() for debug mode only
[babeltrace.git] / src / lib / trace-ir / clock-class.h
index f3daa67c431cdced1e4a07658fe18f59aceda0e5..639cf90e1ce65437bf620f58d2b3c809b64ad5c1 100644 (file)
@@ -42,6 +42,9 @@
 struct bt_clock_class {
        struct bt_object base;
 
+       /* Owned by this */
+       struct bt_value *user_attributes;
+
        struct {
                GString *str;
 
@@ -111,11 +114,10 @@ int bt_clock_class_clock_value_from_ns_from_origin(
                struct bt_clock_class *cc, int64_t ns_from_origin,
                uint64_t *raw_value)
 {
-       BT_ASSERT(cc);
-
+       BT_ASSERT_DBG(cc);
        return bt_common_clock_value_from_ns_from_origin(cc->offset_seconds,
                cc->offset_cycles, cc->frequency, ns_from_origin,
-               raw_value) ? BT_FUNC_STATUS_OVERFLOW : BT_FUNC_STATUS_OK;
+               raw_value) ? BT_FUNC_STATUS_OVERFLOW_ERROR : BT_FUNC_STATUS_OK;
 }
 
 #endif /* BABELTRACE_TRACE_IR_CLOCK_CLASS_INTERNAL_H */
This page took 0.036968 seconds and 4 git commands to generate.