This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tuples] [patches] fix printf format
- From: "Rafael Espindola" <espindola at google dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: "Diego Novillo" <dnovillo at google dot com>
- Date: Wed, 27 Feb 2008 12:00:17 +0000
- Subject: [tuples] [patches] fix printf format
2008-02-27 Rafael Espindola <espindola@google.com>
* tree-dfa.c (dump_dfa_stats): use %zd for dfa_stats.max_num_phi_args
Cheers,
--
Rafael Avila de Espindola
Google Ireland Ltd.
Gordon House
Barrow Street
Dublin 4
Ireland
Registered in Dublin, Ireland
Registration Number: 368047
diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c
index 12e437c..47700ca 100644
--- a/gcc/tree-dfa.c
+++ b/gcc/tree-dfa.c
@@ -493,7 +493,7 @@ dump_dfa_stats (FILE *file)
fprintf (file, "\n");
if (dfa_stats.num_phis)
- fprintf (file, "Average number of arguments per PHI node: %.1f (max: %ld)\n",
+ fprintf (file, "Average number of arguments per PHI node: %.1f (max: %zd)\n",
(float) dfa_stats.num_phi_args / (float) dfa_stats.num_phis,
dfa_stats.max_num_phi_args);