Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / common / kernel-ctl / kernel-ctl.c
index 5373c703943f7710576337bb9995e8cb4321f28b..34d3356e99967e68271aa00d460d63bf3103331c 100644 (file)
@@ -16,7 +16,6 @@
 #include <common/macros.h>
 #include <common/compat/errno.h>
 #include <stdarg.h>
-#include <assert.h>
 #include <common/time.h>
 
 #include "kernel-ctl.h"
@@ -25,7 +24,7 @@
 #define LTTNG_IOCTL_CHECK(fildes, request, ...)                         \
        ({                                                              \
                int _ioctl_ret = ioctl(fildes, request, ##__VA_ARGS__); \
-               assert(_ioctl_ret <= 0);                                \
+               LTTNG_ASSERT(_ioctl_ret <= 0);                                \
                !_ioctl_ret ? 0 : -errno;                               \
        })
 
This page took 0.023246 seconds and 4 git commands to generate.