- if (!lttng_ust_tracepoint_logging_debug_enabled())
- return;
- fprintf(stderr, "lttng-ust-tracepoint [%ld]: dlopen() failed to find '%s', tracepoints in this binary won't be registered. "
- "(at addr=%p in %s() at " __FILE__ ":" lttng_ust_stringify(__LINE__) ")\n",
- (long) getpid(),
- LTTNG_UST_TRACEPOINT_LIB_SONAME,
- LTTNG_UST_TRACEPOINT_THIS_IP,
- __func__);
+ if (lttng_ust_tracepoint_logging_debug_enabled())
+ fprintf(stderr, "lttng-ust-tracepoint [%ld]: Critical: dlopen() failed to find '%s', tracepoints in this binary won't be registered. "
+ "(at addr=%p in %s() at " __FILE__ ":" lttng_ust_stringify(__LINE__) ")\n",
+ (long) getpid(),
+ LTTNG_UST_TRACEPOINT_LIB_SONAME,
+ LTTNG_UST_TRACEPOINT_THIS_IP,
+ __func__);
+ if (lttng_ust_tracepoint_logging_abort_on_critical_enabled())
+ abort();