From d6bd3ade47e62e370a2f2f5337f35071488bd795 Mon Sep 17 00:00:00 2001 From: schnorr Date: Fri, 8 Oct 2010 16:00:17 +0000 Subject: [PATCH 1/1] fix: avoiding the execution of TRACE_surf_action when tracing is disabled git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8391 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/instr/surf_instr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/instr/surf_instr.c b/src/instr/surf_instr.c index d1709a62a3..0d582df3e7 100644 --- 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"); -- 2.20.1