X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c8eac09e9fea8df05ac324368525b417998a60b3..cf56a22da60094d8e7f14b1457526dc194d40226:/src/surf/workstation_KCCFLN05.c diff --git a/src/surf/workstation_KCCFLN05.c b/src/surf/workstation_KCCFLN05.c index 62aaf4f1c3..601f9b9ebf 100644 --- a/src/surf/workstation_KCCFLN05.c +++ b/src/surf/workstation_KCCFLN05.c @@ -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,