summaryrefslogtreecommitdiff
path: root/gcc/ggc-page.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-30 21:26:13 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-30 21:26:13 +0000
commit4d678e392122d240f5c07846e2767cfac3b3d918 (patch)
tree7076c29c098c234e348e0928dca4c025084059ec /gcc/ggc-page.c
parent8d5719677b08805b06ed707aaa2df429131bc380 (diff)
downloadgcc-4d678e392122d240f5c07846e2767cfac3b3d918.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30274 138bc75d-0d04-0410-961f-82ee72b054a4
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 c1cef10a5fc..154ec2c713c 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);
}