9
0
Fork 0

meminfo: purely cosmetical changes

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Holger Schurig 2014-05-30 11:07:32 +02:00 committed by Sascha Hauer
parent 7158ac3f6e
commit bd278ae4fd
2 changed files with 5 additions and 5 deletions

View File

@ -1942,13 +1942,13 @@ static void malloc_update_mallinfo(void)
void malloc_stats(void) void malloc_stats(void)
{ {
malloc_update_mallinfo(); malloc_update_mallinfo();
printf("max system bytes = %10u\n", (unsigned int)(max_total_mem)); printf("Maximum system memory: %u\n", (unsigned int)(max_total_mem));
printf("system bytes = %10u\n", printf("Current system memory: %u\n",
(unsigned int)(sbrked_mem + mmapped_mem)); (unsigned int)(sbrked_mem + mmapped_mem));
printf("in use bytes = %10u\n", printf("in use: %u\n",
(unsigned int)(current_mallinfo.uordblks + mmapped_mem)); (unsigned int)(current_mallinfo.uordblks + mmapped_mem));
#if HAVE_MMAP #if HAVE_MMAP
fprintf(stderr, "max mmap regions = %10u\n", printf("Maximum mmap'ed mmap regions: %u\n",
(unsigned int) max_n_mmaps); (unsigned int) max_n_mmaps);
#endif #endif
} }

View File

@ -97,5 +97,5 @@ void malloc_stats(void)
tlsf_walk_heap(tlsf_mem_pool, malloc_walker, &s); 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);
} }