X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Factions%2Fnotify.c;h=c34f3845f7423725f5f0c5a83e5be0f9bb7c3bf3;hp=93726468e166004ef10cfb4589358a74ca78c134;hb=a0377dfefe40662ba7d68617bce6ff467114136c;hpb=cc3b9644f017a91d347d7a414387292e3175635e diff --git a/src/common/actions/notify.c b/src/common/actions/notify.c index 93726468e..c34f3845f 100644 --- a/src/common/actions/notify.c +++ b/src/common/actions/notify.c @@ -5,7 +5,6 @@ * */ -#include #include #include #include @@ -20,7 +19,7 @@ static struct lttng_action_notify *action_notify_from_action( struct lttng_action *action) { - assert(action); + LTTNG_ASSERT(action); return container_of(action, struct lttng_action_notify, parent); } @@ -28,7 +27,7 @@ static struct lttng_action_notify *action_notify_from_action( static const struct lttng_action_notify *action_notify_from_action_const( const struct lttng_action *action) { - assert(action); + LTTNG_ASSERT(action); return container_of(action, struct lttng_action_notify, parent); } @@ -92,13 +91,13 @@ static enum lttng_error_code lttng_action_notify_mi_serialize( enum lttng_error_code ret_code; const struct lttng_rate_policy *policy = NULL; - assert(action); - assert(IS_NOTIFY_ACTION(action)); - assert(writer); + LTTNG_ASSERT(action); + LTTNG_ASSERT(IS_NOTIFY_ACTION(action)); + LTTNG_ASSERT(writer); status = lttng_action_notify_get_rate_policy(action, &policy); - assert(status == LTTNG_ACTION_STATUS_OK); - assert(policy != NULL); + LTTNG_ASSERT(status == LTTNG_ACTION_STATUS_OK); + LTTNG_ASSERT(policy != NULL); /* Open action notify. */ ret = mi_lttng_writer_open_element(