[cairo-commit] util/malloc-stats.c

Behdad Esfahbod behdad at kemper.freedesktop.org
Mon Sep 17 13:27:08 PDT 2012


 util/malloc-stats.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 38c6084758b178177cff8a3b6a9e0b5be60c80a2
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Mon Sep 17 16:26:08 2012 -0400

    [util/malloc-stats] Use tighter spacing.

diff --git a/util/malloc-stats.c b/util/malloc-stats.c
index d189260..fddacf0 100644
--- a/util/malloc-stats.c
+++ b/util/malloc-stats.c
@@ -257,7 +257,7 @@ add_alloc_stats (struct alloc_stats_t *a, struct alloc_stats_t *b)
 static void
 dump_alloc_stats (struct alloc_stats_t *stats, const char *name)
 {
-	printf ("%8u %'11llu	%8u %'11llu	%8u %'11llu	%s\n",
+	printf ("%8u %'11llu %8u %'11llu %8u %'11llu %s\n",
 		stats->total.num, stats->total.size,
 		stats->malloc.num, stats->malloc.size,
 		stats->realloc.num, stats->realloc.size,
@@ -353,8 +353,8 @@ malloc_stats (void)
 
 	setlocale (LC_ALL, "");
 
-	printf ("	 TOTAL			 MALLOC			REALLOC\n");
-	printf ("     num	size	     num	size	     num	size\n");
+	printf ("          TOTAL                MALLOC              REALLOC\n");
+	printf ("     num        size      num        size      num        size\n");
 
 	for (i = 0; i < j; i++) {
 		dump_alloc_stats (&sorted_func_stats[i].stat,


More information about the cairo-commit mailing list