ret = lttng_stop_tracing_no_wait(session_name);
if (ret < 0) {
- LTTNG_THROW_CTL(fmt::format("Failed to start session `{}`", session_name),
+ LTTNG_THROW_CTL(lttng::format("Failed to start session `{}`", session_name),
static_cast<lttng_error_code>(-ret));
}