summaryrefslogtreecommitdiffstats
path: root/nuttx/sched/pthread_detach.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2007-11-23 22:32:52 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2007-11-23 22:32:52 +0000
commitaacec419a1a5cf8c2de8d8b1cd0eab511d6c55d1 (patch)
tree4c931c8603e4c674f6eec802044b430a953536db /nuttx/sched/pthread_detach.c
parentd1fbff3aafd0f2ee0ccc8a9315c6f39a57f74277 (diff)
Debug can now be selectively enabled by subystem
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@404 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/sched/pthread_detach.c')
-rw-r--r--nuttx/sched/pthread_detach.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/sched/pthread_detach.c b/nuttx/sched/pthread_detach.c
index a1a60acf53..a43be55bcc 100644
--- a/nuttx/sched/pthread_detach.c
+++ b/nuttx/sched/pthread_detach.c
@@ -90,7 +90,7 @@ int pthread_detach(pthread_t thread)
FAR join_t *pjoin;
int ret;
- dbg("Thread=%d\n", thread);
+ sdbg("Thread=%d\n", thread);
/* Find the entry associated with this pthread. */
@@ -98,7 +98,7 @@ int pthread_detach(pthread_t thread)
pjoin = pthread_findjoininfo((pid_t)thread);
if (!pjoin)
{
- dbg("Could not find thread entry\n");
+ sdbg("Could not find thread entry\n");
ret = EINVAL;
}
else
@@ -127,6 +127,6 @@ int pthread_detach(pthread_t thread)
}
(void)pthread_givesemaphore(&g_join_semaphore);
- dbg("Returning %d\n", ret);
+ sdbg("Returning %d\n", ret);
return ret;
}