A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
do not promote bad practices: use "accessor" to get task name
[simgrid.git]
/
teshsuite
/
msg
/
host_on_off_processes
/
host_on_off_processes.cpp
diff --git
a/teshsuite/msg/host_on_off_processes/host_on_off_processes.cpp
b/teshsuite/msg/host_on_off_processes/host_on_off_processes.cpp
index
fe7a2f2
..
eb6b463
100644
(file)
--- a/
teshsuite/msg/host_on_off_processes/host_on_off_processes.cpp
+++ b/
teshsuite/msg/host_on_off_processes/host_on_off_processes.cpp
@@
-61,7
+61,7
@@
static int commRX(int /*argc*/, char** /*argv*/)
XBT_INFO(" Start RX");
msg_error_t error = MSG_task_receive(&(task), mailbox);
if (error == MSG_OK) {
XBT_INFO(" Start RX");
msg_error_t error = MSG_task_receive(&(task), mailbox);
if (error == MSG_OK) {
- XBT_INFO(" Receive message: %s",
task->name
);
+ XBT_INFO(" Receive message: %s",
MSG_task_get_name(task)
);
MSG_task_destroy(task);
} else if (error == MSG_HOST_FAILURE) {
XBT_INFO(" Receive message: HOST_FAILURE");
MSG_task_destroy(task);
} else if (error == MSG_HOST_FAILURE) {
XBT_INFO(" Receive message: HOST_FAILURE");