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_condtimedwait.c | |
parent | fa64306fac12fed8522ab0facdb2cd7f211b2d30 (diff) | |
download | px4-nuttx-2937aaaaf09c2f0d5b46b1a2a30eac962d8455d3.tar.gz px4-nuttx-2937aaaaf09c2f0d5b46b1a2a30eac962d8455d3.tar.bz2 px4-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_condtimedwait.c')
-rw-r--r-- | nuttx/sched/pthread_condtimedwait.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/sched/pthread_condtimedwait.c b/nuttx/sched/pthread_condtimedwait.c index 8202dbf5c..d4d607bd7 100644 --- a/nuttx/sched/pthread_condtimedwait.c +++ b/nuttx/sched/pthread_condtimedwait.c @@ -138,7 +138,7 @@ int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, int ret = OK; int status; - dbg("cond=0x%p mutex=0x%p abstime=0x%p\n", cond, mutex, abstime); + sdbg("cond=0x%p mutex=0x%p abstime=0x%p\n", cond, mutex, abstime); /* Make sure that non-NULL references were provided. */ @@ -174,7 +174,7 @@ int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, } else { - dbg("Give up mutex...\n"); + sdbg("Give up mutex...\n"); /* We must disable pre-emption and interrupts here so that * the time stays valid until the wait begins. This adds @@ -254,7 +254,7 @@ int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, if (*get_errno_ptr() == EINTR) { - dbg("Timedout!\n"); + sdbg("Timedout!\n"); ret = ETIMEDOUT; } else @@ -274,7 +274,7 @@ int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, /* Reacquire the mutex (retaining the ret). */ - dbg("Re-locking...\n"); + sdbg("Re-locking...\n"); status = pthread_takesemaphore((sem_t*)&mutex->sem); if (!status) { @@ -299,7 +299,7 @@ int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, } } - dbg("Returning %d\n", ret); + sdbg("Returning %d\n", ret); return ret; } |