From 2937aaaaf09c2f0d5b46b1a2a30eac962d8455d3 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 23 Nov 2007 22:32:52 +0000 Subject: Debug can now be selectively enabled by subystem git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@404 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/sched/pthread_condwait.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nuttx/sched/pthread_condwait.c') diff --git a/nuttx/sched/pthread_condwait.c b/nuttx/sched/pthread_condwait.c index cbfacf2a3..799c6b85d 100644 --- a/nuttx/sched/pthread_condwait.c +++ b/nuttx/sched/pthread_condwait.c @@ -90,7 +90,7 @@ int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) { int ret; - dbg("cond=0x%p mutex=0x%p\n", cond, mutex); + sdbg("cond=0x%p mutex=0x%p\n", cond, mutex); /* Make sure that non-NULL references were provided. */ @@ -110,7 +110,7 @@ int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) { /* Give up the mutex */ - dbg("Give up mutex / take cond\n"); + sdbg("Give up mutex / take cond\n"); sched_lock(); mutex->pid = 0; @@ -123,7 +123,7 @@ int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) /* Reacquire the mutex */ - dbg("Reacquire mutex...\n"); + sdbg("Reacquire mutex...\n"); ret |= pthread_takesemaphore((sem_t*)&mutex->sem); if (!ret) { @@ -131,7 +131,7 @@ int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) } } - dbg("Returning %d\n", ret); + sdbg("Returning %d\n", ret); return ret; } -- cgit v1.2.3