X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f4895c3c3d812abc5ae8cce1d75580f7ed4bbf4f..20e79288d7f2509807c25b4c2aed721c8c6e1b52:/teshsuite/surf/surf_usage/surf_usage.c?ds=sidebyside diff --git a/teshsuite/surf/surf_usage/surf_usage.c b/teshsuite/surf/surf_usage/surf_usage.c index 45cb3efd86..f6e335ee6c 100644 --- a/teshsuite/surf/surf_usage/surf_usage.c +++ b/teshsuite/surf/surf_usage/surf_usage.c @@ -13,7 +13,6 @@ #include #include "simgrid/sg_config.h" #include "surf/surf.h" -#include "surf/surf_resource.h" #include "surf/surfxml_parse.h" // for reset callback #include "xbt/log.h" @@ -63,8 +62,8 @@ void test(char *platform) cpuB = surf_cpu_resource_by_name("Cpu B"); /* Let's check that those two processors exist */ - XBT_DEBUG("%s : %p", surf_resource_name(surf_cpu_resource_priv(cpuA)), cpuA); - XBT_DEBUG("%s : %p", surf_resource_name(surf_cpu_resource_priv(cpuB)), cpuB); + XBT_DEBUG("%s : %p", surf_cpu_name(surf_cpu_resource_priv(cpuA)), cpuA); + XBT_DEBUG("%s : %p", surf_cpu_name(surf_cpu_resource_priv(cpuB)), cpuB); /* Let's do something on it */ actionA = surf_cpu_execute(cpuA, 1000.0);