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
[trace] do not rely on preprocessor constants to control what is traced (part 1)
[simgrid.git]
/
src
/
instr
/
instr_variables.c
diff --git
a/src/instr/instr_variables.c
b/src/instr/instr_variables.c
index
39993fb
..
fd33b7d
100644
(file)
--- a/
src/instr/instr_variables.c
+++ b/
src/instr/instr_variables.c
@@
-16,7
+16,7
@@
void TRACE_user_link_variable(double time, const char *src,
const char *dst, const char *variable,
double value, const char *what)
{
const char *dst, const char *variable,
double value, const char *what)
{
- if (!TRACE_is_active() || !
IS_TRACING_PLATFORM
)
+ if (!TRACE_is_active() || !
TRACE_platform_is_enabled()
)
return;
char valuestr[100];
return;
char valuestr[100];
@@
-51,7
+51,7
@@
void TRACE_user_host_variable(double time, const char *variable,
double value, const char *what)
{
char valuestr[100];
double value, const char *what)
{
char valuestr[100];
- if (!TRACE_is_active() || !
IS_TRACING_PLATFORM
)
+ if (!TRACE_is_active() || !
TRACE_platform_is_enabled()
)
return;
snprintf(valuestr, 100, "%g", value);
return;
snprintf(valuestr, 100, "%g", value);