CommImpl::~CommImpl()
{
- XBT_DEBUG("Really free communication %p in state %d (detached = %d)", this, static_cast<int>(state_), detached_);
+ XBT_DEBUG("Really free communication %p in state %s (detached = %d)", this, get_state_str(), detached_);
cleanup_surf();
{
if (state_ == State::STARTED && not detached_ &&
(pimpl_ == nullptr || pimpl_->state_ == kernel::activity::State::RUNNING)) {
- if (not detached_)
- XBT_INFO("Comm %p freed before its completion. Did you forget to detach it? (state: %s)", this, get_state_str());
- else
- XBT_INFO("Detached comm %p freed before its completion, please report that bug along with a MWE (state: %s).",
- this, get_state_str());
+ XBT_INFO("Comm %p freed before its completion. Did you forget to detach it? (state: %s)", this, get_state_str());
if (pimpl_ != nullptr)
XBT_INFO("pimpl_->state: %s", pimpl_->get_state_str());
else