Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / bin / lttng / commands / create.c
index 677c17329070276f6530139f315c1e17409ff0f5..b266c10a9397a8e250c0c156a5d7e2fef547db46 100644 (file)
@@ -7,7 +7,6 @@
  */
 
 #define _LGPL_SOURCE
-#include <assert.h>
 #include <ctype.h>
 #include <popt.h>
 #include <stdio.h>
@@ -89,8 +88,8 @@ static int mi_created_session(const char *session_name)
        struct lttng_session *sessions;
 
        /* session_name should not be null */
-       assert(session_name);
-       assert(writer);
+       LTTNG_ASSERT(session_name);
+       LTTNG_ASSERT(writer);
 
        count = lttng_list_sessions(&sessions);
        if (count < 0) {
This page took 0.023283 seconds and 4 git commands to generate.