aboutsummaryrefslogtreecommitdiff
path: root/gcc/vec.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/vec.c')
-rw-r--r--gcc/vec.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/gcc/vec.c b/gcc/vec.c
index bfd5285..bd49d03 100644
--- a/gcc/vec.c
+++ b/gcc/vec.c
@@ -82,11 +82,16 @@ struct vec_usage: public mem_usage
s[48] = '\0';
- fprintf (stderr, "%-48s %10li%11li:%4.1f%%%10li%10li:%4.1f%%%11li%11li\n", s,
- (long)m_element_size,
- (long)m_allocated, m_allocated * 100.0 / total.m_allocated,
- (long)m_peak, (long)m_times, m_times * 100.0 / total.m_times,
- (long)m_items, (long)m_items_peak);
+ fprintf (stderr,
+ "%-48s %10zu%10zu%c:%4.1f%%%9zu%c%10zu"
+ ":%4.1f%%%10zu%c%10zu%c\n",
+ s,
+ m_element_size,
+ SIZE_AMOUNT (m_allocated),
+ m_allocated * 100.0 / total.m_allocated,
+ SIZE_AMOUNT (m_peak), m_times,
+ m_times * 100.0 / total.m_times,
+ SIZE_AMOUNT (m_items), SIZE_AMOUNT (m_items_peak));
}
/* Dump footer. */
@@ -94,8 +99,9 @@ struct vec_usage: public mem_usage
dump_footer ()
{
print_dash_line ();
- fprintf (stderr, "%s%55li%25li%17li\n", "Total", (long)m_allocated,
- (long)m_times, (long)m_items);
+ fprintf (stderr, "%s%64zu%c%25zu%c%16zu%c\n",
+ "Total", SIZE_AMOUNT (m_allocated),
+ SIZE_AMOUNT (m_times), SIZE_AMOUNT (m_items));
print_dash_line ();
}