From: mquinson Date: Mon, 22 Mar 2010 10:09:37 +0000 (+0000) Subject: less printfs, more proper debug X-Git-Tag: SVN~448 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1845901199042029852ddcb9a4175477d4ea5d07?ds=sidebyside less printfs, more proper debug git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7291 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/msg/masterslave/masterslave_mailbox.c b/examples/msg/masterslave/masterslave_mailbox.c index 4bdd10f9d3..382f78def7 100644 --- a/examples/msg/masterslave/masterslave_mailbox.c +++ b/examples/msg/masterslave/masterslave_mailbox.c @@ -29,8 +29,7 @@ int master(int argc, char *argv[]) int i; - printf("Got %ld slaves and %ld tasks to process\n", slaves_count,number_of_tasks); -// INFO2("Got %ld slaves and %ld tasks to process", slaves_count,number_of_tasks); + INFO2("Got %ld slaves and %ld tasks to process", slaves_count,number_of_tasks); for (i = 0; i < number_of_tasks; i++) { char mailbox[256]; @@ -40,13 +39,10 @@ int master(int argc, char *argv[]) sprintf(mailbox,"slave-%ld",i % slaves_count); sprintf(sprintf_buffer, "Task_%d", i); task = MSG_task_create(sprintf_buffer, task_comp_size, task_comm_size, NULL); - if (number_of_tasks<10000 || i%10000 == 0) { - printf("Sending \"%s\" (of %ld) to mailbox \"%s\"\n", task->name, number_of_tasks, mailbox); - fflush(stdout); - } + if (number_of_tasks<10000 || i%10000 == 0) + INFO3("Sending \"%s\" (of %ld) to mailbox \"%s\"", task->name, number_of_tasks, mailbox); MSG_task_send(task, mailbox); - // INFO0("Sent"); } INFO0("All tasks have been dispatched. Let's tell everybody the computation is over.");