Logging: check `BT_DEBUG_MODE` instead of `NDEBUG`
[babeltrace.git] / src / lib / plugin / plugin-so.c
index b7acd815ae6dfb1286e97f8a93378e696e1b0b5f..11cea29da3c1f4e298c771acbc8dfa5748156d05 100644 (file)
@@ -138,7 +138,7 @@ void bt_plugin_so_shared_lib_handle_destroy(struct bt_object *obj)
        }
 
        if (shared_lib_handle->module) {
-#ifndef NDEBUG
+#ifndef BT_DEBUG_MODE
                /*
                 * Valgrind shows incomplete stack traces when
                 * dynamically loaded libraries are closed before it
@@ -157,7 +157,7 @@ void bt_plugin_so_shared_lib_handle_destroy(struct bt_object *obj)
                        }
 
                        shared_lib_handle->module = NULL;
-#ifndef NDEBUG
+#ifndef BT_DEBUG_MODE
                } else {
                        BT_LOGI("Not closing GModule because `BABELTRACE_NO_DLCLOSE=1`: "
                                "path=\"%s\"", path);
This page took 0.02534 seconds and 4 git commands to generate.