Skip to content

Commit

Permalink
samples/basic: print_sys_memory_stats() removed from hash_map, static
Browse files Browse the repository at this point in the history
Remove print_sys_memory_stats() from hash_map example as it is not used
there at all. For sys_heap make this a static function.

Signed-off-by: Florian La Roche <[email protected]>
  • Loading branch information
laroche authored and cfriedt committed Aug 22, 2023
1 parent d90cbc7 commit 88a3620
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions samples/basic/hash_map/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ LOG_MODULE_REGISTER(hashmap_sample);

SYS_HASHMAP_DEFINE_STATIC(map);

void print_sys_memory_stats(void);

struct _stats {
uint64_t n_insert;
uint64_t n_remove;
Expand Down
4 changes: 2 additions & 2 deletions samples/basic/sys_heap/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
static char heap_mem[HEAP_SIZE];
static struct sys_heap heap;

void print_sys_memory_stats(void);
static void print_sys_memory_stats(void);

int main(void)
{
Expand All @@ -34,7 +34,7 @@ int main(void)
return 0;
}

void print_sys_memory_stats(void)
static void print_sys_memory_stats(void)
{
struct sys_memory_stats stats;

Expand Down

0 comments on commit 88a3620

Please sign in to comment.