X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6e0d0f6c1580aceb13c060bbf95cbe9000cf6bbd..a7cc502f224afb96f0203b94759cd0dabebf8de5:/src/s4u/s4u_Mess.cpp diff --git a/src/s4u/s4u_Mess.cpp b/src/s4u/s4u_Mess.cpp index b16b387fdb..0a8da79d37 100644 --- a/src/s4u/s4u_Mess.cpp +++ b/src/s4u/s4u_Mess.cpp @@ -35,7 +35,7 @@ MessPtr Mess::set_payload(void* payload) MessPtr Mess::set_dst_data(void** buff, size_t size) { xbt_assert(state_ == State::INITED, "You cannot use %s() once your communication started (not implemented)", - __FUNCTION__); + __func__); dst_buff_ = buff; dst_buff_size_ = size; @@ -61,7 +61,7 @@ Actor* Mess::get_receiver() const Mess* Mess::do_start() { xbt_assert(get_state() == State::INITED || get_state() == State::STARTING, - "You cannot use %s() once your message exchange has started (not implemented)", __FUNCTION__); + "You cannot use %s() once your message exchange has started (not implemented)", __func__); auto myself = kernel::actor::ActorImpl::self(); if (myself == sender_) { @@ -88,8 +88,8 @@ Mess* Mess::do_start() pimpl_->set_actor(sender_); // Only throw the signal when both sides are here and the status is READY if (pimpl_->get_state() != kernel::activity::State::WAITING) { - fire_on_start(); - fire_on_this_start(); + fire_on_start(); + fire_on_this_start(); } state_ = State::STARTED; return this;