ret = lttng_stop_tracing_no_wait(session.name);
if (ret < 0 && ret != -LTTNG_ERR_TRACE_ALREADY_STOPPED) {
- LTTNG_THROW_CTL(fmt::format("Failed to stop session `{}`", session.name),
+ LTTNG_THROW_CTL(lttng::format("Failed to stop session `{}`", session.name),
static_cast<lttng_error_code>(-ret));
}
} while (ret != 0);
}
- std::unique_ptr<char, lttng::memory::create_deleter_class<char, lttng::free>::deleter>
+ std::unique_ptr<char,
+ lttng::memory::create_deleter_class<char, lttng::memory::free>::deleter>
stats_str;
if (!session_was_already_stopped) {
char *raw_stats_str = nullptr;
auto ctl_ret_code =
lttng_destroy_session_ext(session.name, &raw_destruction_handle);
if (ctl_ret_code != LTTNG_OK) {
- LTTNG_THROW_CTL(fmt::format("Failed to destroy session `{}`", session.name),
+ LTTNG_THROW_CTL(lttng::format("Failed to destroy session `{}`",
+ session.name),
ctl_ret_code);
}
}
if (ctl_ret_code != LTTNG_OK) {
- LTTNG_THROW_CTL(fmt::format("Failed to destroy session `{}`", session.name),
+ LTTNG_THROW_CTL(lttng::format("Failed to destroy session `{}`",
+ session.name),
ctl_ret_code);
}
* destroy the file.
*/
const auto session_name =
- lttng::make_unique_wrapper<char, lttng::free>(get_session_name_quiet());
+ lttng::make_unique_wrapper<char, lttng::memory::free>(get_session_name_quiet());
if (session_name && !strncmp(session.name, session_name.get(), NAME_MAX)) {
config_destroy_default();
}