- stream << (short)mc::Transition::Type::COMM_SEND << ' ';
- stream << (uintptr_t)comm_ << ' ' << mbox_->get_id() << ' ' << (uintptr_t)src_buff_ << ' ' << src_buff_size_ << ' '
- << tag_;
- XBT_DEBUG("SendObserver comm:%p mbox:%u buff:%p size:%zu tag:%d", comm_, mbox_->get_id(), src_buff_, src_buff_size_,
- tag_);
+ /* Note that the comm_ is 0 until after the execution of the simcall */
+ stream << (short)mc::Transition::Type::COMM_ASYNC_SEND << ' ';
+ stream << (comm_ ? comm_->get_id() : 0) << ' ' << mbox_->get_id() << ' ' << tag_;
+ XBT_DEBUG("SendObserver comm:%p mbox:%u tag:%d", comm_, mbox_->get_id(), tag_);
+ stream << ' ' << fun_call_;
+}
+std::string CommIsendSimcall::to_string() const
+{
+ return "CommAsyncSend(comm_id: " + std::to_string(comm_->get_id()) + " mbox:" + std::to_string(mbox_->get_id()) +
+ " tag: " + std::to_string(tag_) + ")";