summaryrefslogtreecommitdiff
path: root/nuttx/mm
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-05-28 14:09:58 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-05-28 14:09:58 -0600
commit28f4459e19244a14d046b8ea833cf94f4a92f1d5 (patch)
treeb7edc006ea46c0a38b2febd829ab540b04bd021a /nuttx/mm
parentd96f37cf7b042e1e878f107c0a1be3dea01a8826 (diff)
downloadnuttx-28f4459e19244a14d046b8ea833cf94f4a92f1d5.tar.gz
nuttx-28f4459e19244a14d046b8ea833cf94f4a92f1d5.tar.bz2
nuttx-28f4459e19244a14d046b8ea833cf94f4a92f1d5.zip
Cosmetic changes
Diffstat (limited to 'nuttx/mm')
-rw-r--r--nuttx/mm/mm_sem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nuttx/mm/mm_sem.c b/nuttx/mm/mm_sem.c
index f986e9923..e72f7d796 100644
--- a/nuttx/mm/mm_sem.c
+++ b/nuttx/mm/mm_sem.c
@@ -211,7 +211,10 @@ void mm_givesemaphore(FAR struct mm_heap_s *heap)
{
/* Nope, this is the last reference I have */
+#ifdef CONFIG_DEBUG
msemdbg("PID=%d giving\n", my_pid);
+#endif
+
heap->mm_holder = -1;
heap->mm_counts_held = 0;
ASSERT(sem_post(&heap->mm_semaphore) == 0);