From: alegrand Date: Fri, 22 Jul 2005 18:17:11 +0000 (+0000) Subject: I know using different loging levels demonstrate the use of xbt_log but it is not... X-Git-Tag: v3.3~3802 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/90b26357d5a8a6f19c6a15648f051d8e14e989e2?hp=8bcb64274105bb46c01c6486534cf0110828a00a;ds=sidebyside I know using different loging levels demonstrate the use of xbt_log but it is not really the purpose of this example and has troubled some guys. So let's make everything uniform. Beside, using an experimental resource model (KCCFLN05) is not a good idea as many peple just cut and paste this exemple and have troubles because this model is not fully functionnal. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1554 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/msg/msg_test.c b/examples/msg/msg_test.c index 5fa18e1b6b..c4ea92b8b3 100644 --- a/examples/msg/msg_test.c +++ b/examples/msg/msg_test.c @@ -82,20 +82,20 @@ int master(int argc, char *argv[]) INFO1("Got %d slave(s) :", slaves_count); for (i = 0; i < slaves_count; i++) - VERB1("\t %s", slaves[i]->name); + INFO1("\t %s", slaves[i]->name); INFO1("Got %d task to process :", number_of_tasks); for (i = 0; i < number_of_tasks; i++) - VERB1("\t\"%s\"", todo[i]->name); + INFO1("\t\"%s\"", todo[i]->name); for (i = 0; i < number_of_tasks; i++) { - VERB2("Sending \"%s\" to \"%s\"", + INFO2("Sending \"%s\" to \"%s\"", todo[i]->name, slaves[i % slaves_count]->name); MSG_task_put(todo[i], slaves[i % slaves_count], PORT_22); - DEBUG0("Send completed"); + INFO0("Send completed"); } INFO0("All tasks have been dispatched. Bye!"); @@ -115,9 +115,9 @@ int slave(int argc, char *argv[]) a = MSG_task_get(&(task), PORT_22); if (a == MSG_OK) { INFO1("Received \"%s\" ", task->name); - DEBUG1("Processing \"%s\" ", task->name); + INFO1("Processing \"%s\" ", task->name); MSG_task_execute(task); - VERB1("\"%s\" done ", task->name); + INFO1("\"%s\" done ", task->name); MSG_task_destroy(task); } else { INFO0("Hey ?! What's up ? "); @@ -177,7 +177,7 @@ int forwarder(int argc, char *argv[]) void test_all(const char *platform_file,const char *application_file) { - MSG_config("surf_workstation_model","KCCFLN05"); + /* MSG_config("surf_workstation_model","KCCFLN05"); */ { /* Simulation setting */ MSG_set_channel_number(MAX_CHANNEL); MSG_paje_output("msg_test.trace");