Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / bin / lttng / commands / stop.c
index 448efd5cd3cd8eec84f2d1567c92c3e15a1d2f14..d69da40abe677b63c6ba5860416667ff97b6917c 100644 (file)
@@ -13,7 +13,6 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <unistd.h>
-#include <assert.h>
 
 #include <common/sessiond-comm/sessiond-comm.h>
 #include <common/mi-lttng.h>
@@ -49,8 +48,8 @@ static struct poptOption long_options[] = {
 static int mi_print_session(char *session_name, int enabled)
 {
        int ret;
-       assert(writer);
-       assert(session_name);
+       LTTNG_ASSERT(writer);
+       LTTNG_ASSERT(session_name);
 
        /* Open session element */
        ret = mi_lttng_writer_open_element(writer, config_element_session);
This page took 0.023395 seconds and 4 git commands to generate.