lib: make BT_ASSERT_{PRE,POST}() always on; add BT_ASSERT_{PRE,POST}_DEV()
[babeltrace.git] / src / lib / graph / query-executor.c
index b3367b1a8f26b145bfc6e743606e272fa3e81953..e381917e3ceb7fae0850246dac9136192b3da705 100644 (file)
@@ -56,7 +56,8 @@ struct bt_query_executor *bt_query_executor_create(void)
        BT_LOGD_STR("Creating query executor.");
        query_exec = g_new0(struct bt_query_executor, 1);
        if (!query_exec) {
-               BT_LOGE_STR("Failed to allocate one query executor.");
+               BT_LIB_LOGE_APPEND_CAUSE(
+                       "Failed to allocate one query executor.");
                goto end;
        }
 
@@ -161,7 +162,7 @@ enum bt_query_executor_cancel_status bt_query_executor_cancel(
 
 bt_bool bt_query_executor_is_canceled(const struct bt_query_executor *query_exec)
 {
-       BT_ASSERT_PRE_NON_NULL(query_exec, "Query executor");
+       BT_ASSERT_PRE_DEV_NON_NULL(query_exec, "Query executor");
        return query_exec->canceled;
 }
 
This page took 0.025553 seconds and 4 git commands to generate.