From a055707c5c4efacc5ef7f0f66c919c7f85225104 Mon Sep 17 00:00:00 2001 From: navarro Date: Tue, 22 May 2012 11:35:29 +0200 Subject: [PATCH] Fix compilation when using MSG_USE_DEPRECATED --- src/msg/msg_gos.c | 2 +- src/msg/msg_mailbox.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/msg/msg_gos.c b/src/msg/msg_gos.c index 4c49b237a4..3582956813 100644 --- a/src/msg/msg_gos.c +++ b/src/msg/msg_gos.c @@ -1033,7 +1033,7 @@ MSG_task_put_with_timeout(m_task_t task, m_host_t dest, && (channel < msg_global->max_channel), "Invalid channel %d", channel); - XBT_DEBUG("MSG_task_put_with_timout: Trying to send a task to '%s'", dest->name); + XBT_DEBUG("MSG_task_put_with_timout: Trying to send a task to '%s'", dest->smx_host->name); return MSG_mailbox_put_with_timeout(MSG_mailbox_get_by_channel (dest, channel), task, timeout); diff --git a/src/msg/msg_mailbox.c b/src/msg/msg_mailbox.c index 9b94299312..5fd54c3b43 100644 --- a/src/msg/msg_mailbox.c +++ b/src/msg/msg_mailbox.c @@ -8,6 +8,7 @@ #include "msg_mailbox.h" #include "msg_private.h" + XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_mailbox, msg, "Logging specific to MSG (mailbox)"); @@ -192,6 +193,6 @@ msg_mailbox_t MSG_mailbox_get_by_channel(m_host_t host, && (channel < msg_global->max_channel), "Invalid channel %d", channel); - return host->simdata->mailboxes[(size_t) channel]; + return host->mailboxes[(size_t) channel]; } #endif -- 2.20.1