diff --git a/arch/arm/src/common/up_exit.c b/arch/arm/src/common/up_exit.c index 79ff212183..63e086c390 100644 --- a/arch/arm/src/common/up_exit.c +++ b/arch/arm/src/common/up_exit.c @@ -148,7 +148,7 @@ void _exit(int status) (void)irqsave(); - slldbg("TCB=%p exitting\n", tcb); + slldbg("TCB=%p exitting\n", g_readytorun.head); #if defined(CONFIG_DUMP_ON_EXIT) && defined(CONFIG_DEBUG) slldbg("Other tasks:\n"); @@ -164,7 +164,6 @@ void _exit(int status) */ tcb = (_TCB*)g_readytorun.head; - slldbg("New Active Task TCB=%p\n", tcb); /* Then switch contexts */ diff --git a/arch/sh/src/common/up_exit.c b/arch/sh/src/common/up_exit.c index 30506c3e51..b362880ec4 100644 --- a/arch/sh/src/common/up_exit.c +++ b/arch/sh/src/common/up_exit.c @@ -148,7 +148,7 @@ void _exit(int status) (void)irqsave(); - slldbg("TCB=%p exitting\n", tcb); + slldbg("TCB=%p exitting\n", g_readytorun.head); #if defined(CONFIG_DUMP_ON_EXIT) && defined(CONFIG_DEBUG) slldbg("Other tasks:\n"); @@ -164,7 +164,6 @@ void _exit(int status) */ tcb = (_TCB*)g_readytorun.head; - slldbg("New Active Task TCB=%p\n", tcb); /* Then switch contexts */