&& (channel < msg_global->max_channel), "Invalid channel %d",
channel);
/* Sanity check */
- xbt_assert0(task, "Null pointer for the task\n");
+ xbt_assert0(task, "Null pointer for the task storage");
if (*task)
CRITICAL0
#define MSG_RETURN(val) do {PROCESS_SET_ERRNO(val);return(val);} while(0)
/* #define CHECK_ERRNO() ASSERT((PROCESS_GET_ERRNO()!=MSG_HOST_FAILURE),"Host failed, you cannot call this function.") */
-#define CHECK_HOST() xbt_assert0(SIMIX_host_get_state(SIMIX_host_self())==1,\
- "Host failed, you cannot call this function.")
+#define CHECK_HOST() xbt_assert1(SIMIX_host_get_state(SIMIX_host_self())==1,\
+ "Host failed, you cannot call this function. (state=%d)",SIMIX_host_get_state(SIMIX_host_self()))
m_host_t __MSG_host_create(smx_host_t workstation, void *data);
static void parse_process_init(void)
{
parse_host = xbt_strdup(A_surfxml_process_host);
- xbt_assert1(SIMIX_host_get_by_name(A_surfxml_process_host),
- "Unknown host %s", A_surfxml_process_host);
+ xbt_assert1(SIMIX_host_get_by_name(parse_host),
+ "Unknown host %s", parse_host);
parse_code = SIMIX_get_registered_function(A_surfxml_process_function);
xbt_assert1(parse_code, "Unknown function %s",
A_surfxml_process_function);