lib: heap: make heap_print_info static

This should be declated static as it is being only called in this file.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2023-11-17 19:14:58 -05:00
parent d6d716b32a
commit b9f2ac0270
2 changed files with 1 additions and 4 deletions

View file

@ -11,7 +11,7 @@
/*
* Print heap info for debugging / analysis purpose
*/
void heap_print_info(struct z_heap *h, bool dump_chunks)
static void heap_print_info(struct z_heap *h, bool dump_chunks)
{
int i, nb_buckets = bucket_idx(h, h->end_chunk) + 1;
size_t free_bytes, allocated_bytes, total, overhead;

View file

@ -279,7 +279,4 @@ static inline void get_alloc_info(struct z_heap *h, size_t *alloc_bytes,
}
}
/* For debugging */
void heap_print_info(struct z_heap *h, bool dump_chunks);
#endif /* ZEPHYR_INCLUDE_LIB_OS_HEAP_H_ */