Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ansi C declaration of the variables (at the beginning of the blocks)
[simgrid.git] / src / surf / workstation_KCCFLN05.c
index 62aaf4f..601f9b9 100644 (file)
@@ -1197,6 +1197,7 @@ static void add_route(void)
   char *key,*data, *end;
   const char *sep = "#";
   xbt_dynar_t links, keys;
+  char* link = NULL;
 
   if (routing_table == NULL) create_routing_table();
 
@@ -1216,15 +1217,13 @@ static void add_route(void)
     impact_on_src_with_other_recv = 0;//atof(xbt_dynar_get_as(keys, 4, char*));
     impact_on_dst_with_other_send = 0;//atof(xbt_dynar_get_as(keys, 5, char*));
 
-    char* link = NULL;
-    INFO2("%d - %d", src_id, dst_id);
+    
     xbt_dynar_foreach (links, cpt, link) {
       TRY {
-       INFO1("\t%s",link);
         link_list[nb_link++] = xbt_dict_get(link_set, link);
       }
       CATCH(e) {
-        RETHROW3("Link %s not found between %s and %s (dict raised this exception: %s)", link,src,dst);
+        RETHROW1("Link %s not found (dict raised this exception: %s)", link);
       }     
     }
     route_new(src_id, dst_id, link_list, nb_link,impact_on_src,