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
plug a memleak in that example
[simgrid.git]
/
examples
/
msg
/
actions
/
actions.c
diff --git
a/examples/msg/actions/actions.c
b/examples/msg/actions/actions.c
index
22e5961
..
746afe2
100644
(file)
--- a/
examples/msg/actions/actions.c
+++ b/
examples/msg/actions/actions.c
@@
-482,7
+482,11
@@
static void action_allReduce(const char *const *action) {
XBT_DEBUG("%s: %s has received", allreduce_identifier, process_name);
}
XBT_DEBUG("%s: %s has received", allreduce_identifier, process_name);
}
- XBT_VERB("%s %f", xbt_str_join_array(action, " "), MSG_get_clock() - clock);
+ if (XBT_LOG_ISENABLED(actions,xbt_log_priority_verbose)) {
+ char *a = xbt_str_join_array(action, " ");
+ XBT_VERB("%s %f", a, MSG_get_clock() - clock);
+ free(a);
+ }
free(allreduce_identifier);
}
free(allreduce_identifier);
}