X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3b4eb8fa03f6e6bf4dd3db8c6d67270ed9f0d176..687f4837379b6b1d25eecb3c3ad9faa6e495efc8:/src/surf/workstation_KCCFLN05.c diff --git a/src/surf/workstation_KCCFLN05.c b/src/surf/workstation_KCCFLN05.c index 4fa7ca342c..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", link); + RETHROW1("Link %s not found (dict raised this exception: %s)", link); } } route_new(src_id, dst_id, link_list, nb_link,impact_on_src,