Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / tests / utils / testapp / gen-ust-tracef / gen-ust-tracef.c
index 8f74a90daf45728d0bd2f24cb17a8e6ddcce5224..f0f6cc63c372465363bda2b453c466d810580f3f 100644 (file)
@@ -7,7 +7,6 @@
  */
 
 #define _LGPL_SOURCE
-#include <assert.h>
 #include <fcntl.h>
 #include <stdarg.h>
 #include <stdio.h>
@@ -18,6 +17,7 @@
 #include <sys/types.h>
 #include <unistd.h>
 
+#include <common/macros.h>
 #include <lttng/tracef.h>
 #include "signal-helper.h"
 
@@ -28,7 +28,7 @@ void create_file(const char *path)
 {
        int ret;
 
-       assert(path);
+       LTTNG_ASSERT(path);
 
        ret = creat(path, S_IRWXU);
        if (ret < 0) {
This page took 0.022819 seconds and 4 git commands to generate.