mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
This commit is contained in:
+2
-2
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
bool kmm_heapmember(FAR void *mem)
|
||||
{
|
||||
#if CONFIG_MM_REGIONS > 1
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user