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
fix: avoiding the execution of TRACE_surf_action when tracing is disabled
[simgrid.git]
/
src
/
instr
/
surf_instr.c
diff --git
a/src/instr/surf_instr.c
b/src/instr/surf_instr.c
index
d1709a6
..
0d582df
100644
(file)
--- a/
src/instr/surf_instr.c
+++ b/
src/instr/surf_instr.c
@@
-234,6
+234,7
@@
int TRACE_surf_link_is_traced (void *link)
void TRACE_surf_action (surf_action_t surf_action, const char *category)
{
+ if (!IS_TRACING) return;
if (!IS_TRACING_PLATFORM) return;
if (!category){
xbt_die ("invalid tracing category");