From: Arnaud Giersch Date: Tue, 11 Mar 2014 08:40:26 +0000 (+0100) Subject: Add some debug messages. X-Git-Tag: v3_11~220^2~4 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/0dd446376dd8189e5a2e4f4041509e9d056ebfd8 Add some debug messages. --- diff --git a/src/simix/smx_host.c b/src/simix/smx_host.c index 0ee1ee8c48..83c4cf78f8 100644 --- a/src/simix/smx_host.c +++ b/src/simix/smx_host.c @@ -463,7 +463,7 @@ smx_action_t SIMIX_host_execute(const char *name, } } - XBT_DEBUG("Create execute action %p", action); + XBT_DEBUG("Create execute action %p: %s", action, action->name); return action; } diff --git a/src/simix/smx_process.c b/src/simix/smx_process.c index 0fadb637f6..1ef7148c37 100644 --- a/src/simix/smx_process.c +++ b/src/simix/smx_process.c @@ -766,6 +766,7 @@ void SIMIX_process_sleep_suspend(smx_action_t action) void SIMIX_process_sleep_resume(smx_action_t action) { + XBT_DEBUG("Action state is %d on process_sleep_resume.", action->state); xbt_assert(action->type == SIMIX_ACTION_SLEEP); surf_action_resume(action->sleep.surf_sleep); } @@ -798,10 +799,11 @@ void SIMIX_process_yield(smx_process_t self) SIMIX_process_stop(self); } - if(self->suspended) { + if (self->suspended) { + XBT_DEBUG("Hey! I'm suspended."); xbt_assert(!self->doexception, "Gloups! This exception may be lost by subsequent calls."); self->suspended = 0; - SIMIX_process_suspend(self,self); + SIMIX_process_suspend(self, self); } if (self->doexception) {