From 0dd446376dd8189e5a2e4f4041509e9d056ebfd8 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 11 Mar 2014 09:40:26 +0100 Subject: [PATCH] Add some debug messages. --- src/simix/smx_host.c | 2 +- src/simix/smx_process.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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) { -- 2.20.1