Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES

This commit is contained in:
Gregory Nutt
2016-06-11 14:14:08 -06:00
parent c211ce8be1
commit 1cdc746726
1185 changed files with 2056 additions and 2019 deletions
+2 -2
View File
@@ -116,7 +116,7 @@ config GRAN_INTR
config DEBUG_GRAN
bool "Granule Allocator Debug"
default n
depends on GRAN && DEBUG
depends on GRAN && DEBUG_FEATURES
---help---
Just like DEBUG_MM, but only generates output from the gran
allocation logic.
@@ -143,7 +143,7 @@ config MM_PGSIZE
config DEBUG_PGALLOC
bool "Page Allocator Debug"
default n
depends on DEBUG
depends on DEBUG_FEATURES
---help---
Just like DEBUG_MM, but only generates output from the page
allocation logic.
+1 -1
View File
@@ -44,7 +44,7 @@ ifeq ($(CONFIG_BUILD_KERNEL),y)
CSRCS += kmm_sbrk.c
endif
ifeq ($(CONFIG_DEBUG),y)
ifeq ($(CONFIG_DEBUG_FEATURES),y)
CSRCS += kmm_heapmember.c
endif
+2 -2
View File
@@ -43,7 +43,7 @@
#include <nuttx/mm/mm.h>
#if defined(CONFIG_MM_KERNEL_HEAP) && defined(CONFIG_DEBUG)
#if defined(CONFIG_MM_KERNEL_HEAP) && defined(CONFIG_DEBUG_FEATURES)
/****************************************************************************
* Public Functions
@@ -105,4 +105,4 @@ bool kmm_heapmember(FAR void *mem)
#endif
}
#endif /* CONFIG_MM_KERNEL_HEAP && CONFIG_DEBUG */
#endif /* CONFIG_MM_KERNEL_HEAP && CONFIG_DEBUG_FEATURES */
+1 -1
View File
@@ -66,7 +66,7 @@
*
****************************************************************************/
#ifdef CONFIG_DEBUG
#ifdef CONFIG_DEBUG_FEATURES
bool kmm_heapmember(FAR void *mem)
{
#if CONFIG_MM_REGIONS > 1
+3 -3
View File
@@ -53,7 +53,7 @@
//#define MONITOR_MM_SEMAPHORE 1
#ifdef MONITOR_MM_SEMAPHORE
# ifdef CONFIG_DEBUG
# ifdef CONFIG_DEBUG_FEATURES
# include <debug.h>
# define msemdbg dbg
# else
@@ -186,7 +186,7 @@ void mm_takesemaphore(FAR struct mm_heap_s *heap)
void mm_givesemaphore(FAR struct mm_heap_s *heap)
{
#ifdef CONFIG_DEBUG
#ifdef CONFIG_DEBUG_FEATURES
pid_t my_pid = getpid();
#endif
@@ -207,7 +207,7 @@ void mm_givesemaphore(FAR struct mm_heap_s *heap)
{
/* Nope, this is the last reference I have */
#ifdef CONFIG_DEBUG
#ifdef CONFIG_DEBUG_FEATURES
msemdbg("PID=%d giving\n", my_pid);
#endif