X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d6d03a0a88c2673c9e5c604d63912b77bc17fdd4..c7cad16a187e10f78f94c63a490f474676702424:/src/mc/mc_record.cpp diff --git a/src/mc/mc_record.cpp b/src/mc/mc_record.cpp index 2881f48c28..ce2bfa2cba 100644 --- a/src/mc/mc_record.cpp +++ b/src/mc/mc_record.cpp @@ -12,8 +12,8 @@ #include #include -#include -#include +#include "xbt/log.h" +#include "xbt/sysdep.h" #include "simgrid/simix.h" @@ -53,13 +53,12 @@ void replay(RecordTrace const& trace) // Choose a request: smx_actor_t process = SIMIX_process_from_PID(transition.pid); - if (!process) - xbt_die("Unexpected process."); + if (not process) + xbt_die("Unexpected process (pid:%d).", transition.pid); smx_simcall_t simcall = &(process->simcall); - if(!simcall || simcall->call == SIMCALL_NONE) - xbt_die("No simcall for this process."); - if (!simgrid::mc::request_is_visible(simcall) - || !simgrid::mc::request_is_enabled(simcall)) + if (not simcall || simcall->call == SIMCALL_NONE) + xbt_die("No simcall for process %d.", transition.pid); + if (not simgrid::mc::request_is_visible(simcall) || not simgrid::mc::actor_is_enabled(process)) xbt_die("Unexpected simcall."); // Execute the request: