[PATCH 06/10] meminfo: purely cosmetical changes

Holger Schurig holgerschurig at gmail.com
Fri May 30 02:07:32 PDT 2014


Signed-off-by: Holger Schurig <holgerschurig at gmail.com>
---
 common/dlmalloc.c    |    8 ++++----
 common/tlsf_malloc.c |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/common/dlmalloc.c b/common/dlmalloc.c
index f006206..d831e90 100644
--- a/common/dlmalloc.c
+++ b/common/dlmalloc.c
@@ -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
 }
diff --git a/common/tlsf_malloc.c b/common/tlsf_malloc.c
index aa8fc13..a3541d8 100644
--- a/common/tlsf_malloc.c
+++ b/common/tlsf_malloc.c
@@ -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);
 }
-- 
1.7.10.4




More information about the barebox mailing list