From e225758aeea3737865fc2341560d5c3f7ddf3d52 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Sat, 30 Oct 1999 21:26:13 +0000 Subject: ggc-common.c (ggc_print_statistics): Make arguments to fprintf match format string, even on 64-bit hosts. * ggc-common.c (ggc_print_statistics): Make arguments to fprintf match format string, even on 64-bit hosts. * gcc-page.c (ggc_page_print_statistics): Likewise. From-SVN: r30274 --- gcc/ggc-page.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gcc/ggc-page.c') diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c index c1cef10..154ec2c 100644 --- a/gcc/ggc-page.c +++ b/gcc/ggc-page.c @@ -1146,10 +1146,13 @@ ggc_page_print_statistics () in_use += (OBJECTS_PER_PAGE (i) - p->num_free_objects) * (1 << i); } - fprintf (stderr, "%-3d %-15u %-15u\n", i, allocated, in_use); + fprintf (stderr, "%-3d %-15lu %-15u\n", i, + (unsigned long) allocated, in_use); } /* Print out some global information. */ - fprintf (stderr, "\nTotal bytes marked: %u\n", G.allocated); - fprintf (stderr, "Total bytes mapped: %u\n", G.bytes_mapped); + fprintf (stderr, "\nTotal bytes marked: %lu\n", + (unsigned long) G.allocated); + fprintf (stderr, "Total bytes mapped: %lu\n", + (unsigned long) G.bytes_mapped); } -- cgit v1.1