ggc-page.c (ggc_print_statistics): Use %ul and a cast to unsigned long for printing OBJECT_SIZE.

2006-11-28  Richard Guenther  <rguenther@suse.de>

	* ggc-page.c (ggc_print_statistics): Use %ul and a cast to
	unsigned long for printing OBJECT_SIZE.

From-SVN: r119280
This commit is contained in:
Richard Guenther 2006-11-28 10:03:49 +00:00 committed by Richard Biener
parent 8ef0ceb479
commit 00df958942
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2006-11-28 Richard Guenther <rguenther@suse.de>
* ggc-page.c (ggc_print_statistics): Use %ul and a cast to
unsigned long for printing OBJECT_SIZE.
2006-11-27 Steven Bosscher <steven@gcc.gnu.org>
* alias.c (init_alias_analysis): Remove simplification loop

View File

@ -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