Fix: visitor-generate-ir.c: dereference after `NULL` check
[babeltrace.git] / src / plugins / ctf / common / metadata / visitor-generate-ir.c
index 0799ba19d2e5dedad760d31dba2cd61fc7853331..7bad52667964e2a8c16355b69673c39137c4136d 100644 (file)
@@ -4714,7 +4714,9 @@ struct ctf_visitor_generate_ir *ctf_visitor_generate_ir_create(
        /* Create visitor's context */
        ctx = ctx_create(decoder_config);
        if (!ctx) {
-               BT_COMP_LOGE_STR("Cannot create visitor's context.");
+               BT_COMP_LOG_CUR_LVL(BT_LOG_ERROR, decoder_config->log_level,
+                       decoder_config->self_comp,
+                       "Cannot create visitor's context.");
                goto error;
        }
 
This page took 0.026647 seconds and 4 git commands to generate.