X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Frotate.c;fp=src%2Flib%2Flttng-ctl%2Frotate.c;h=d131944043ec4bf2667999137acb997fc056037b;hp=17964fb1070784b9b65badf61eca9a94da9e819c;hb=a0377dfefe40662ba7d68617bce6ff467114136c;hpb=cc3b9644f017a91d347d7a414387292e3175635e diff --git a/src/lib/lttng-ctl/rotate.c b/src/lib/lttng-ctl/rotate.c index 17964fb10..d13194404 100644 --- a/src/lib/lttng-ctl/rotate.c +++ b/src/lib/lttng-ctl/rotate.c @@ -6,7 +6,6 @@ */ #define _LGPL_SOURCE -#include #include #include @@ -223,7 +222,7 @@ int lttng_rotate_session(const char *session_name, ret = lttng_strncpy(lsm.session.name, session_name, sizeof(lsm.session.name)); /* Source length already validated. */ - assert(ret == 0); + LTTNG_ASSERT(ret == 0); ret = lttng_ctl_ask_sessiond(&lsm, (void **) &rotate_return); if (ret <= 0) { @@ -288,7 +287,7 @@ enum lttng_rotation_status lttng_rotation_update_schedule( ret = lttng_strncpy(lsm.session.name, session_name, sizeof(lsm.session.name)); /* Source length already validated. */ - assert(ret == 0); + LTTNG_ASSERT(ret == 0); lsm.u.rotation_set_schedule.type = (uint32_t) schedule->type; switch (schedule->type) {