X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4a1b203eedb4a87a698ab9d3fba107d1def85d6e..2b02a57e5d484b2be62c0d4b88e83fed748127f3:/src/surf/cpu.c diff --git a/src/surf/cpu.c b/src/surf/cpu.c index c2d01b500a..d8580f8780 100644 --- a/src/surf/cpu.c +++ b/src/surf/cpu.c @@ -249,7 +249,7 @@ static surf_action_t execute(void *cpu, double size) surf_action_cpu_Cas01_t action = NULL; cpu_Cas01_t CPU = cpu; - XBT_IN2("(%s,%g)", CPU->generic_resource.name, size); + XBT_IN2("(%s,%g)", surf_resource_name(CPU), size); action = surf_action_new(sizeof(s_surf_action_cpu_Cas01_t),size,surf_cpu_model, CPU->state_current != SURF_RESOURCE_ON); @@ -271,7 +271,7 @@ static surf_action_t action_sleep(void *cpu, double duration) if (duration > 0) duration = MAX(duration, MAXMIN_PRECISION); - XBT_IN2("(%s,%g)", ((cpu_Cas01_t) cpu)->generic_resource.name, duration); + XBT_IN2("(%s,%g)", surf_resource_name(cpu), duration); action = (surf_action_cpu_Cas01_t) execute(cpu, 1.0); action->generic_action.max_duration = duration; action->suspended = 2;