X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5032998904d77b72c4dc7658a3d29b90341e6b46..74b753c075bcd054409e619771d3b5967cfdb60e:/src/mc/mc_request.c diff --git a/src/mc/mc_request.c b/src/mc/mc_request.c index 27e1d3f342..2e8a8149bc 100644 --- a/src/mc/mc_request.c +++ b/src/mc/mc_request.c @@ -274,9 +274,9 @@ char *MC_request_to_string(smx_simcall_t req, int value) } if(args != NULL){ - str = bprintf("[(%lu)%s (%s)] %s(%d) (%s)", req->issuer->pid , MSG_host_get_name(req->issuer->smx_host), req->issuer->name, type, req->call, args); + str = bprintf("[(%lu)%s (%s)] %s(%s) (%d)", req->issuer->pid , MSG_host_get_name(req->issuer->smx_host), req->issuer->name, type, args, req->call); }else{ - str = bprintf("[(%lu)%s (%s)] %s(%d) ", req->issuer->pid , MSG_host_get_name(req->issuer->smx_host), req->issuer->name, type, req->call); + str = bprintf("[(%lu)%s (%s)] %s (%d) ", req->issuer->pid , MSG_host_get_name(req->issuer->smx_host), req->issuer->name, type, req->call); } xbt_free(args); @@ -461,17 +461,10 @@ char *MC_request_get_dot_output(smx_simcall_t req, int value){ break; case SIMCALL_MC_RANDOM: - if(value == 0){ - if(req->issuer->smx_host) - label = bprintf("[(%lu)%s] MC_RANDOM (0)", req->issuer->pid, MSG_host_get_name(req->issuer->smx_host)); - else - label = bprintf("[(%lu)] MC_RANDOM (0)", req->issuer->pid); - }else{ - if(req->issuer->smx_host) - label = bprintf("[(%lu)%s] MC_RANDOM (1)", req->issuer->pid, MSG_host_get_name(req->issuer->smx_host)); - else - label = bprintf("[(%lu)] MC_RANDOM (1)", req->issuer->pid); - } + if(req->issuer->smx_host) + label = bprintf("[(%lu)%s] MC_RANDOM (%d)", req->issuer->pid, MSG_host_get_name(req->issuer->smx_host), value); + else + label = bprintf("[(%lu)] MC_RANDOM (%d)", req->issuer->pid, value); break; case SIMCALL_MC_SNAPSHOT: