]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix printf call in symtab.c.
authorMartin Liska <mliska@suse.cz>
Mon, 5 Nov 2018 14:25:37 +0000 (15:25 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 5 Nov 2018 14:25:37 +0000 (14:25 +0000)
2018-11-05  Martin Liska  <mliska@suse.cz>

* symtab.c (ht_dump_statistics): Fix format and
pass missing argument.

From-SVN: r265810

libcpp/ChangeLog
libcpp/symtab.c

index 36ee636bf9cc5079717830fc98b8e694a8871dd6..53fb80f1afe3c3ea03d3a56ef927b567e543cdf3 100644 (file)
@@ -1,3 +1,8 @@
+2018-11-05  Martin Liska  <mliska@suse.cz>
+
+       * symtab.c (ht_dump_statistics): Fix format and
+       pass missing argument.
+
 2018-11-05  Martin Liska  <mliska@suse.cz>
 
        * symtab.c (ht_dump_statistics): Make dump conditional
index e6e5bcb1cef9293fd79ec19240a2d737dbdb4573..0976c43b0027dd8fcd0ba74bb3575231763fd4fe 100644 (file)
@@ -321,8 +321,9 @@ ht_dump_statistics (cpp_hash_table *table)
   else
     {
       overhead = obstack_memory_used (&table->stack) - total_bytes;
-      fprintf (stderr, "obstack bytes\t%lu%c (%lu%c overhead)\n",
-              SCALE (total_bytes), LABEL (total_bytes));
+      fprintf (stderr, "obstack bytes\t%zu%c (%zu%c overhead)\n",
+              SCALE (total_bytes), LABEL (total_bytes),
+              SCALE (overhead), LABEL (overhead));
     }
   fprintf (stderr, "table size\t%lu%c\n",
           SCALE (headers), LABEL (headers));