Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] removing constant that is used only once
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 2 Dec 2010 16:33:30 +0000 (16:33 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 2 Dec 2010 16:33:30 +0000 (16:33 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8905 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/instr/resource_utilization.c
src/instr/surf_instr.c

index 9140485..8c413fc 100644 (file)
@@ -8,8 +8,6 @@
 
 #ifdef HAVE_TRACING
 
 
 #ifdef HAVE_TRACING
 
-#define VARIABLE_SEPARATOR '#'
-
 //to check if variables were previously set to 0, otherwise paje won't simulate them
 static xbt_dict_t platform_variables;   /* host or link name -> array of categories */
 
 //to check if variables were previously set to 0, otherwise paje won't simulate them
 static xbt_dict_t platform_variables;   /* host or link name -> array of categories */
 
index bbc10f4..f73e280 100644 (file)
@@ -11,8 +11,6 @@
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(tracing_surf, tracing, "Tracing Surf");
 
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(tracing_surf, tracing, "Tracing Surf");
 
-#define VARIABLE_SEPARATOR '#'
-
 static xbt_dict_t created_links;
 static xbt_dict_t host_containers;
 static xbt_dict_t resource_variables;   /* (host|link)#variable -> value */
 static xbt_dict_t created_links;
 static xbt_dict_t host_containers;
 static xbt_dict_t resource_variables;   /* (host|link)#variable -> value */
@@ -57,7 +55,7 @@ static void TRACE_surf_set_resource_variable(double date,
   if (!IS_TRACING)
     return;
   snprintf(aux, 100, "%f", value);
   if (!IS_TRACING)
     return;
   snprintf(aux, 100, "%f", value);
-  snprintf(key, 100, "%s%c%s", resource, VARIABLE_SEPARATOR, variable);
+  snprintf(key, 100, "%s#%s", resource, variable);
 
   last_value = xbt_dict_get_or_null(resource_variables, key);
   if (last_value) {
 
   last_value = xbt_dict_get_or_null(resource_variables, key);
   if (last_value) {