mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
Indent the define statement by two spaces
follow the code style convention Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
ae1fd83a46
commit
7990f90915
+2
-2
@@ -127,9 +127,9 @@
|
||||
#define MM_PREVFREE_BIT 0x2
|
||||
#define MM_MASK_BIT (MM_ALLOC_BIT | MM_PREVFREE_BIT)
|
||||
#ifdef CONFIG_MM_SMALL
|
||||
# define MMSIZE_MAX UINT16_MAX
|
||||
# define MMSIZE_MAX UINT16_MAX
|
||||
#else
|
||||
# define MMSIZE_MAX UINT32_MAX
|
||||
# define MMSIZE_MAX UINT32_MAX
|
||||
#endif
|
||||
|
||||
/* What is the size of the allocnode? */
|
||||
|
||||
@@ -52,7 +52,7 @@ void mm_foreach(FAR struct mm_heap_s *heap, mm_node_handler_t handler,
|
||||
#if CONFIG_MM_REGIONS > 1
|
||||
int region;
|
||||
#else
|
||||
# define region 0
|
||||
# define region 0
|
||||
#endif
|
||||
|
||||
DEBUGASSERT(handler);
|
||||
|
||||
@@ -117,7 +117,7 @@ void mm_addregion(FAR struct mm_heap_s *heap, FAR void *heapstart,
|
||||
}
|
||||
|
||||
#else
|
||||
# define IDX 0
|
||||
# define IDX 0
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_MM_SMALL) && !defined(CONFIG_SMALL_MEMORY)
|
||||
|
||||
@@ -120,7 +120,7 @@ int mm_mallinfo(FAR struct mm_heap_s *heap, FAR struct mallinfo *info)
|
||||
#if CONFIG_MM_REGIONS > 1
|
||||
int region = heap->mm_nregions;
|
||||
#else
|
||||
# define region 1
|
||||
# define region 1
|
||||
#endif
|
||||
|
||||
DEBUGASSERT(info);
|
||||
|
||||
+4
-4
@@ -479,7 +479,7 @@ void mm_addregion(FAR struct mm_heap_s *heap, FAR void *heapstart,
|
||||
}
|
||||
|
||||
#else
|
||||
# define idx 0
|
||||
# define idx 0
|
||||
#endif
|
||||
|
||||
/* Register to KASan for access check */
|
||||
@@ -575,7 +575,7 @@ void mm_checkcorruption(FAR struct mm_heap_s *heap)
|
||||
#if CONFIG_MM_REGIONS > 1
|
||||
int region;
|
||||
#else
|
||||
# define region 0
|
||||
# define region 0
|
||||
#endif
|
||||
|
||||
/* Visit each region */
|
||||
@@ -849,7 +849,7 @@ int mm_mallinfo(FAR struct mm_heap_s *heap, FAR struct mallinfo *info)
|
||||
#if CONFIG_MM_REGIONS > 1
|
||||
int region;
|
||||
#else
|
||||
# define region 0
|
||||
# define region 0
|
||||
#endif
|
||||
|
||||
DEBUGASSERT(info);
|
||||
@@ -926,7 +926,7 @@ void mm_memdump(FAR struct mm_heap_s *heap, pid_t pid)
|
||||
#if CONFIG_MM_REGIONS > 1
|
||||
int region;
|
||||
#else
|
||||
# define region 0
|
||||
# define region 0
|
||||
#endif
|
||||
struct mallinfo_task info;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user