From: Gabriel Corona Date: Tue, 25 Feb 2014 11:47:17 +0000 (+0100) Subject: [mc] Fix format strings X-Git-Tag: v3_11~199^2~2^2~19^2~4 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9c7f456269cc51f2d718d399d2e49a381a62264c?hp=5ce5b5c91c7ed6031f502835a07124f7e38d91f2 [mc] Fix format strings --- diff --git a/examples/smpi/mc/non_deterministic.c b/examples/smpi/mc/non_deterministic.c index 0f10100b36..b73cbd2e67 100644 --- a/examples/smpi/mc/non_deterministic.c +++ b/examples/smpi/mc/non_deterministic.c @@ -38,7 +38,7 @@ int main(int argc, char **argv) MPI_Recv(&recv_buff, 1, MPI_INT, MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &status); printf("Message received from %d\n", recv_buff); MPI_Send(&recv_buff, 1, MPI_INT, status.MPI_SOURCE, 42, MPI_COMM_WORLD); - printf("Sent %d to rank %d\n", status.MPI_SOURCE); + // printf("Sent %d to rank %d\n", status.MPI_SOURCE); } }else{ diff --git a/src/mc/mc_dpor.c b/src/mc/mc_dpor.c index 1050394ae7..7aaa065a07 100644 --- a/src/mc/mc_dpor.c +++ b/src/mc/mc_dpor.c @@ -162,9 +162,9 @@ static void print_communications_pattern(xbt_dynar_t comms_pattern){ mc_comm_pattern_t current_comm; xbt_dynar_foreach(comms_pattern, cursor, current_comm){ if(current_comm->type == SIMIX_COMM_SEND) - XBT_INFO("[(%d) %s -> %s] %s ", current_comm->src_proc, current_comm->src_host, current_comm->dst_host, "iSend"); + XBT_INFO("[(%lu) %s -> %s] %s ", current_comm->src_proc, current_comm->src_host, current_comm->dst_host, "iSend"); else - XBT_INFO("[(%d) %s <- %s] %s ", current_comm->dst_proc, current_comm->dst_host, current_comm->src_host, "iRecv"); + XBT_INFO("[(%lu) %s <- %s] %s ", current_comm->dst_proc, current_comm->dst_host, current_comm->src_host, "iRecv"); } }