A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reduce a bit the amount of logs at INFO level
[simgrid.git]
/
examples
/
msg
/
msg_test.c
diff --git
a/examples/msg/msg_test.c
b/examples/msg/msg_test.c
index
985baa8
..
8e7f54d
100644
(file)
--- 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++)
INFO1("Got %d slave(s) :", slaves_count);
for (i = 0; i < slaves_count; i++)
-
INFO
1("\t %s", slaves[i]->name);
+
VERB
1("\t %s", slaves[i]->name);
INFO1("Got %d task to process :", number_of_tasks);
for (i = 0; i < number_of_tasks; i++)
INFO1("Got %d task to process :", number_of_tasks);
for (i = 0; i < number_of_tasks; i++)
-
INFO
1("\t\"%s\"", todo[i]->name);
+
VERB
1("\t\"%s\"", todo[i]->name);
for (i = 0; i < number_of_tasks; i++) {
for (i = 0; i < number_of_tasks; i++) {
-
INFO
2("Sending \"%s\" to \"%s\"",
+
VERB
2("Sending \"%s\" to \"%s\"",
todo[i]->name,
slaves[i % slaves_count]->name);
MSG_task_put(todo[i], slaves[i % slaves_count],
PORT_22);
todo[i]->name,
slaves[i % slaves_count]->name);
MSG_task_put(todo[i], slaves[i % slaves_count],
PORT_22);
-
INFO
0("Send completed");
+
DEBUG
0("Send completed");
}
INFO0("All tasks have been dispatched. Bye!");
}
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);
a = MSG_task_get(&(task), PORT_22);
if (a == MSG_OK) {
INFO1("Received \"%s\" ", task->name);
-
INFO
1("Processing \"%s\" ", task->name);
+
DEBUG
1("Processing \"%s\" ", task->name);
MSG_task_execute(task);
MSG_task_execute(task);
-
INFO
1("\"%s\" done ", task->name);
+
VERB
1("\"%s\" done ", task->name);
MSG_task_destroy(task);
} else {
INFO0("Hey ?! What's up ? ");
MSG_task_destroy(task);
} else {
INFO0("Hey ?! What's up ? ");