Skip to content

Commit

Permalink
meminfo: purely cosmetical changes
Browse files Browse the repository at this point in the history
Signed-off-by: Holger Schurig <[email protected]>
Signed-off-by: Sascha Hauer <[email protected]>
  • Loading branch information
holgerschurig authored and saschahauer committed Jun 2, 2014
1 parent 7158ac3 commit bd278ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions common/dlmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1942,13 +1942,13 @@ static void malloc_update_mallinfo(void)
void malloc_stats(void)
{
malloc_update_mallinfo();
printf("max system bytes = %10u\n", (unsigned int)(max_total_mem));
printf("system bytes = %10u\n",
printf("Maximum system memory: %u\n", (unsigned int)(max_total_mem));
printf("Current system memory: %u\n",
(unsigned int)(sbrked_mem + mmapped_mem));
printf("in use bytes = %10u\n",
printf("in use: %u\n",
(unsigned int)(current_mallinfo.uordblks + mmapped_mem));
#if HAVE_MMAP
fprintf(stderr, "max mmap regions = %10u\n",
printf("Maximum mmap'ed mmap regions: %u\n",
(unsigned int) max_n_mmaps);
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion common/tlsf_malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ void malloc_stats(void)

tlsf_walk_heap(tlsf_mem_pool, malloc_walker, &s);

printf("used: %10zu\nfree: %10zu\n", s.used, s.free);
printf("used: %zu\nfree: %zu\n", s.used, s.free);
}

0 comments on commit bd278ae

Please sign in to comment.