Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / bin / lttng / commands / save.c
index 7d09a42a28192d0328ad6eb04c1772d9258853a2..4231922ad3f724f5ac36995184efd5c6053e7cdb 100644 (file)
@@ -11,7 +11,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <assert.h>
 
 #include <common/mi-lttng.h>
 
@@ -49,8 +48,8 @@ static struct poptOption save_opts[] = {
 static int mi_partial_session(const char *session_name)
 {
        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);
@@ -76,7 +75,7 @@ end:
 static int mi_save_print(const char *session_name)
 {
        int ret;
-       assert(writer);
+       LTTNG_ASSERT(writer);
 
        if (opt_save_all) {
                /* We use a wildcard to represent all sessions */
This page took 0.023671 seconds and 4 git commands to generate.