X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e3b4914d04bbe5d9e79ea8e8cf00d6ad9e7824d1..c25a26b26202c93dc2bfa44d214b8f804b78b8b3:/teshsuite/msg/host_on_off/host_on_off.c diff --git a/teshsuite/msg/host_on_off/host_on_off.c b/teshsuite/msg/host_on_off/host_on_off.c index 9922503d12..db526a4302 100644 --- a/teshsuite/msg/host_on_off/host_on_off.c +++ b/teshsuite/msg/host_on_off/host_on_off.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2018. The SimGrid Team. +/* Copyright (c) 2010-2019. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -47,7 +47,7 @@ static int master(int argc, char *argv[]) msg_host_t jupiter = MSG_host_by_name("Jupiter"); msg_task_t task = MSG_task_create("task on", task_comp_size, task_comm_size, NULL); - XBT_INFO("Sending \"%s\"", task->name); + XBT_INFO("Sending \"%s\"", MSG_task_get_name(task)); if (MSG_task_send_with_timeout(task, mailbox, 1) != MSG_OK) MSG_task_destroy(task); @@ -55,7 +55,7 @@ static int master(int argc, char *argv[]) MSG_host_off(jupiter); task = MSG_task_create("task off", task_comp_size, task_comm_size, NULL); - XBT_INFO("Sending \"%s\"", task->name); + XBT_INFO("Sending \"%s\"", MSG_task_get_name(task)); if (MSG_task_send_with_timeout(task, mailbox, 1) != MSG_OK) MSG_task_destroy(task); @@ -71,7 +71,7 @@ static int master(int argc, char *argv[]) xbt_dynar_free(&jupi_processes); task = MSG_task_create("task on without proc", task_comp_size, task_comm_size, NULL); - XBT_INFO("Sending \"%s\"", task->name); + XBT_INFO("Sending \"%s\"", MSG_task_get_name(task)); if (MSG_task_send_with_timeout(task, mailbox, 1) != MSG_OK) MSG_task_destroy(task); @@ -80,12 +80,12 @@ static int master(int argc, char *argv[]) MSG_process_create_with_arguments("slave", slave, NULL, MSG_host_by_name("Jupiter"), 1, argvF); task = MSG_task_create("task on with proc", task_comp_size, task_comm_size, NULL); - XBT_INFO("Sending \"%s\"", task->name); + XBT_INFO("Sending \"%s\"", MSG_task_get_name(task)); if (MSG_task_send_with_timeout(task, mailbox, 1) != MSG_OK) MSG_task_destroy(task); task = MSG_task_create("finalize", 0, 0, 0); - XBT_INFO("Sending \"%s\"", task->name); + XBT_INFO("Sending \"%s\"", MSG_task_get_name(task)); if (MSG_task_send_with_timeout(task, mailbox, 1) != MSG_OK) MSG_task_destroy(task);