X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fhealth%2Fhealth.c;h=8f147c678a95753d26f22584a5831af2c60ba2cb;hp=62e211419fe463c28ae5c64cb842f1038295bfc7;hb=a0377dfefe40662ba7d68617bce6ff467114136c;hpb=cc3b9644f017a91d347d7a414387292e3175635e diff --git a/src/common/health/health.c b/src/common/health/health.c index 62e211419..8f147c678 100644 --- a/src/common/health/health.c +++ b/src/common/health/health.c @@ -7,7 +7,6 @@ */ #define _LGPL_SOURCE -#include #include #include #include @@ -156,7 +155,7 @@ static int validate_state(struct health_app *ha, struct health_state *state) unsigned long current, last; struct timespec current_time; - assert(state); + LTTNG_ASSERT(state); last = state->last; current = uatomic_read(&state->current); @@ -224,7 +223,7 @@ int health_check_state(struct health_app *ha, int type) int retval = 1; struct health_state *state; - assert(type < ha->nr_types); + LTTNG_ASSERT(type < ha->nr_types); state_lock(ha); @@ -260,7 +259,7 @@ end: */ void health_register(struct health_app *ha, int type) { - assert(type < ha->nr_types); + LTTNG_ASSERT(type < ha->nr_types); /* Init TLS state. */ uatomic_set(&URCU_TLS(health_state).last, 0);