diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-23 22:32:52 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-23 22:32:52 +0000 |
commit | 2937aaaaf09c2f0d5b46b1a2a30eac962d8455d3 (patch) | |
tree | 4c931c8603e4c674f6eec802044b430a953536db /nuttx/sched/pthread_condwait.c | |
parent | fa64306fac12fed8522ab0facdb2cd7f211b2d30 (diff) | |
download | nuttx-2937aaaaf09c2f0d5b46b1a2a30eac962d8455d3.tar.gz nuttx-2937aaaaf09c2f0d5b46b1a2a30eac962d8455d3.tar.bz2 nuttx-2937aaaaf09c2f0d5b46b1a2a30eac962d8455d3.zip |
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
Diffstat (limited to 'nuttx/sched/pthread_condwait.c')
-rw-r--r-- | nuttx/sched/pthread_condwait.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |