This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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);
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]