From: Arnaud Giersch Date: Thu, 10 Dec 2020 07:56:03 +0000 (+0100) Subject: More conversions int -> aid_t. X-Git-Tag: v3.26~24 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/60b5be19e93620a8ec8394cfa12c36d9cfad98a0?ds=sidebyside More conversions int -> aid_t. --- diff --git a/src/mc/checker/CommunicationDeterminismChecker.cpp b/src/mc/checker/CommunicationDeterminismChecker.cpp index 0a7a4a2974..577cfd70cd 100644 --- a/src/mc/checker/CommunicationDeterminismChecker.cpp +++ b/src/mc/checker/CommunicationDeterminismChecker.cpp @@ -70,16 +70,16 @@ static void restore_communications_pattern(simgrid::mc::State* state) patterns_copy(incomplete_communications_pattern[i], state->incomplete_comm_pattern_[i]); } -static char* print_determinism_result(simgrid::mc::CommPatternDifference diff, int process, +static char* print_determinism_result(simgrid::mc::CommPatternDifference diff, aid_t process, const simgrid::mc::PatternCommunication* comm, unsigned int cursor) { char* type; char* res; if (comm->type == simgrid::mc::PatternCommunicationType::send) - type = bprintf("The send communications pattern of the process %d is different!", process - 1); + type = bprintf("The send communications pattern of the process %ld is different!", process - 1); else - type = bprintf("The recv communications pattern of the process %d is different!", process - 1); + type = bprintf("The recv communications pattern of the process %ld is different!", process - 1); using simgrid::mc::CommPatternDifference; switch (diff) { @@ -129,7 +129,7 @@ static void update_comm_pattern(simgrid::mc::PatternCommunication* comm_pattern, namespace simgrid { namespace mc { -void CommunicationDeterminismChecker::deterministic_comm_pattern(int process, const PatternCommunication* comm, +void CommunicationDeterminismChecker::deterministic_comm_pattern(aid_t process, const PatternCommunication* comm, int backtracking) { if (not backtracking) { diff --git a/src/mc/checker/CommunicationDeterminismChecker.hpp b/src/mc/checker/CommunicationDeterminismChecker.hpp index a1937411b2..553e7ba037 100644 --- a/src/mc/checker/CommunicationDeterminismChecker.hpp +++ b/src/mc/checker/CommunicationDeterminismChecker.hpp @@ -28,7 +28,7 @@ private: void prepare(); void real_run(); void log_state() override; - void deterministic_comm_pattern(int process, const PatternCommunication* comm, int backtracking); + void deterministic_comm_pattern(aid_t process, const PatternCommunication* comm, int backtracking); void restoreState(); void handle_comm_pattern(simgrid::mc::CallType call_type, smx_simcall_t req, int value, int backtracking);