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:
parent
d6d716b32a
commit
b9f2ac0270
|
@ -11,7 +11,7 @@
|
||||||
/*
|
/*
|
||||||
* Print heap info for debugging / analysis purpose
|
* 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;
|
int i, nb_buckets = bucket_idx(h, h->end_chunk) + 1;
|
||||||
size_t free_bytes, allocated_bytes, total, overhead;
|
size_t free_bytes, allocated_bytes, total, overhead;
|
||||||
|
|
|
@ -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_ */
|
#endif /* ZEPHYR_INCLUDE_LIB_OS_HEAP_H_ */
|
||||||
|
|
Loading…
Reference in a new issue