Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / common / error.c
index 4d6b26b229c0a8773fe9ebb427b880c5986afc84..1e3bd2d9b5137b5ea2f82391b1d5b79b70001694 100644 (file)
@@ -6,7 +6,6 @@
  */
 
 #define _LGPL_SOURCE
-#include <assert.h>
 #include <inttypes.h>
 #include <pthread.h>
 #include <stdlib.h>
@@ -74,7 +73,7 @@ void logger_set_thread_name(const char *name, bool set_pthread_name)
 {
        int ret;
 
-       assert(name);
+       LTTNG_ASSERT(name);
        URCU_TLS(logger_thread_name) = name;
 
        if (set_pthread_name) {
This page took 0.023176 seconds and 4 git commands to generate.