From 00df958942c2e5805cf3ab236da2725f30fee80d Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Tue, 28 Nov 2006 10:03:49 +0000 Subject: [PATCH] ggc-page.c (ggc_print_statistics): Use %ul and a cast to unsigned long for printing OBJECT_SIZE. 2006-11-28 Richard Guenther * ggc-page.c (ggc_print_statistics): Use %ul and a cast to unsigned long for printing OBJECT_SIZE. From-SVN: r119280 --- gcc/ChangeLog | 5 +++++ gcc/ggc-page.c | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 896826d2d1fb..9bc59081a3dc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-11-28 Richard Guenther + + * ggc-page.c (ggc_print_statistics): Use %ul and a cast to + unsigned long for printing OBJECT_SIZE. + 2006-11-27 Steven Bosscher * alias.c (init_alias_analysis): Remove simplification loop diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c index 5d880339d5a3..01251f606e0c 100644 --- a/gcc/ggc-page.c +++ b/gcc/ggc-page.c @@ -2017,10 +2017,12 @@ ggc_print_statistics (void) for (i = 0; i < NUM_ORDERS; i++) if (G.stats.total_allocated_per_order[i]) { - fprintf (stderr, "Total Overhead page size %7d: %10lld\n", - OBJECT_SIZE (i), G.stats.total_overhead_per_order[i]); - fprintf (stderr, "Total Allocated page size %7d: %10lld\n", - OBJECT_SIZE (i), G.stats.total_allocated_per_order[i]); + fprintf (stderr, "Total Overhead page size %7ul: %10lld\n", + (unsigned long) OBJECT_SIZE (i), + G.stats.total_overhead_per_order[i]); + fprintf (stderr, "Total Allocated page size %7ul: %10lld\n", + (unsigned long) OBJECT_SIZE (i), + G.stats.total_allocated_per_order[i]); } } #endif -- 2.47.2