Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / bin / lttng-sessiond / condition-internal.c
index 8afb4ea1c667e43052762f83a11675aaf2dc34cf..caab613aa733c8e534e36674f837e21561808b37 100644 (file)
@@ -87,7 +87,7 @@ unsigned long lttng_condition_session_rotation_hash(
                        struct lttng_condition_session_rotation, parent);
        condition_type = (unsigned long) condition->parent.type;
        hash = hash_key_ulong((void *) condition_type, lttng_ht_seed);
-       assert(condition->session_name);
+       LTTNG_ASSERT(condition->session_name);
        hash ^= hash_key_str(condition->session_name, lttng_ht_seed);
        return hash;
 }
@@ -102,7 +102,7 @@ static unsigned long lttng_condition_event_rule_matches_hash(
        condition_type = (unsigned long) condition->type;
        condition_status = lttng_condition_event_rule_matches_get_rule(
                        condition, &event_rule);
-       assert(condition_status == LTTNG_CONDITION_STATUS_OK);
+       LTTNG_ASSERT(condition_status == LTTNG_CONDITION_STATUS_OK);
 
        hash = hash_key_ulong((void *) condition_type, lttng_ht_seed);
        return hash ^ lttng_event_rule_hash(event_rule);
This page took 0.023055 seconds and 4 git commands to generate.