aboutsummaryrefslogtreecommitdiff
path: root/gcc/ggc-page.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-10-30 21:26:13 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-10-30 21:26:13 +0000
commite225758aeea3737865fc2341560d5c3f7ddf3d52 (patch)
tree7076c29c098c234e348e0928dca4c025084059ec /gcc/ggc-page.c
parente42ea7f9349ceb9a28c0e762f702a2afbc105539 (diff)
downloadgcc-e225758aeea3737865fc2341560d5c3f7ddf3d52.zip
gcc-e225758aeea3737865fc2341560d5c3f7ddf3d52.tar.gz
gcc-e225758aeea3737865fc2341560d5c3f7ddf3d52.tar.bz2
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
Diffstat (limited to 'gcc/ggc-page.c')
-rw-r--r--gcc/ggc-page.c9
1 files changed, 6 insertions, 3 deletions
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);
}