*/
#define _LGPL_SOURCE
-#include <assert.h>
#include <inttypes.h>
#include <signal.h>
#define UINT_TO_PTR(value) \
({ \
- assert(value <= UINTPTR_MAX); \
+ LTTNG_ASSERT(value <= UINTPTR_MAX); \
(void *) (uintptr_t) value; \
})
#define PTR_TO_UINT(ptr) ((uintptr_t) ptr)
{
int ret;
- assert(session);
- assert(session->rotation_pending_check_timer_enabled);
+ LTTNG_ASSERT(session);
+ LTTNG_ASSERT(session->rotation_pending_check_timer_enabled);
DBG("Disabling session rotation pending check timer on session %" PRIu64,
session->id);
{
int ret = 0;
- assert(session);
+ LTTNG_ASSERT(session);
if (!session->rotation_schedule_timer_enabled) {
goto end;