X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/325b135f0ee33c6c0242a14e2f58a54fb571b032..ffc874c5572820b9e2533d6e7b01602bfd5909d2:/communicator.cpp?ds=sidebyside diff --git a/communicator.cpp b/communicator.cpp index f3de918..8393515 100644 --- a/communicator.cpp +++ b/communicator.cpp @@ -5,7 +5,6 @@ #include #include #include -#include "simgrid_features.h" #include "misc.h" #include "options.h" @@ -53,6 +52,7 @@ void communicator::listen() void communicator::send(const char* dest, message* msg) { + DEBUG2("send %s to %s", msg->to_string().c_str(), dest); double msg_size = sizeof *msg; if (msg->get_type() == message::LOAD) msg_size += opt::comm_cost(msg->get_amount()); @@ -105,6 +105,10 @@ bool communicator::recv(message*& msg, m_host_t& from, bool wait) } } while (restart); + if (msg) + DEBUG2("received %s from %s", + msg->to_string().c_str(), MSG_host_get_name(from)); + return msg != NULL; }