From e0a1f6ef60fb57836b46ec65e5b4a1113f35069e Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 11 Nov 2008 19:34:07 +0000 Subject: [PATCH] Fix problems when debug enabled git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1193 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/common/up_exit.c | 3 +-- arch/sh/src/common/up_exit.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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 */