- std::vector<std::string> res = resolve_backtrace(&bt[0], bt.size());
- XBT_LOG(xbt_log_priority_critical, "Current backtrace:");
- for (std::string const& s : res)
- XBT_LOG(xbt_log_priority_critical, " -> %s", s.c_str());
+ std::string res = bt.resolve();
+ XBT_CRITICAL("Current backtrace:");
+ XBT_CRITICAL(" -> %s", res.c_str());