Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : print local variables only with debug mode enabled
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Thu, 20 Sep 2012 08:50:22 +0000 (10:50 +0200)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Fri, 5 Oct 2012 17:19:15 +0000 (19:19 +0200)
src/mc/mc_global.c

index fa16d65..9f46c20 100644 (file)
@@ -921,7 +921,8 @@ void MC_get_binary_local_variables(){
 
   }
 
 
   }
 
-  print_local_variables(mc_binary_local_variables);
+  if(XBT_LOG_ISENABLED(mc_global, xbt_log_priority_debug))
+    print_local_variables(mc_binary_local_variables);
 
   free(line); free(tmp_line); free(tmp_location); free(frame_name);
   free(node_type); free(location_type); free(variable_name); free(lowpc); free(highpc);
 
   free(line); free(tmp_line); free(tmp_location); free(frame_name);
   free(node_type); free(location_type); free(variable_name); free(lowpc); free(highpc);