X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ae855a0d996d06d373fbc233e78b0fbe7f1f2df6..5d038603f775914afc8c6f35eff53f3682802f5b:/src/instr/instr_msg_volume.c diff --git a/src/instr/instr_msg_volume.c b/src/instr/instr_msg_volume.c index 97b23315a6..8067d86791 100644 --- a/src/instr/instr_msg_volume.c +++ b/src/instr/instr_msg_volume.c @@ -15,16 +15,16 @@ void TRACE_msg_volume_start(m_task_t task) char process_name[200], process_alias[200]; char task_name[200]; double volume = 0; - if (!IS_TRACING_VOLUME) + if (!TRACE_msg_volume_is_enabled()) return; /* check if task is traced */ - if (!IS_TRACED(task)) + if (!task->category) return; /* check if process is traced */ process = MSG_process_self(); - if (!IS_TRACED(process)) + if (!process->category) return; host = MSG_process_get_host(process); @@ -44,16 +44,16 @@ void TRACE_msg_volume_finish(m_task_t task) char task_name[200]; m_process_t process = NULL; m_host_t host = NULL; - if (!IS_TRACING_VOLUME) + if (!TRACE_msg_volume_is_enabled()) return; /* check if task is traced */ - if (!IS_TRACED(task)) + if (!task->category) return; /* check if process is traced */ process = MSG_process_self(); - if (!IS_TRACED(process)) + if (!process->category) return; host = MSG_process_get_host(process); @@ -65,4 +65,4 @@ void TRACE_msg_volume_finish(m_task_t task) process_alias, task_name); } -#endif +#endif /* HAVE_TRACING */