X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/826c8a2c215097957759f992e2fa7f31fb1a98b8..d0ffc37686edcc803601f76ab51fdfed5fc2f241:/src/instr/instr_interface.c diff --git a/src/instr/instr_interface.c b/src/instr/instr_interface.c index e18be1f617..170ebb12bb 100644 --- a/src/instr/instr_interface.c +++ b/src/instr/instr_interface.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2010. The SimGrid Team. +/* Copyright (c) 2010-2013. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -8,7 +8,10 @@ #ifdef HAVE_TRACING #include "instr/instr_private.h" -#include "surf/network_private.h" +#include "surf/surf.h" +#include "surf/surf_private.h" + +//FIXME:#include "surf/network_private.h" typedef enum { INSTR_US_DECLARE, @@ -374,7 +377,7 @@ static void instr_user_srcdst_variable(double time, unsigned int i; void *link; xbt_dynar_foreach (route, i, link) { - char *link_name = ((link_CM02_t)link)->lmm_resource.generic_resource.name; + char *link_name = (char*)surf_resource_name(link); instr_user_variable (time, link_name, variable, father_type, value, what, NULL, user_link_variables); } }