From: Martin Liska Date: Mon, 5 Nov 2018 14:25:37 +0000 (+0100) Subject: Fix printf call in symtab.c. X-Git-Tag: basepoints/gcc-10~3311 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=037903cbd136f35b899d1450d06955a5a93af67f;p=thirdparty%2Fgcc.git Fix printf call in symtab.c. 2018-11-05 Martin Liska * symtab.c (ht_dump_statistics): Fix format and pass missing argument. From-SVN: r265810 --- diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 36ee636bf9cc..53fb80f1afe3 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,8 @@ +2018-11-05 Martin Liska + + * symtab.c (ht_dump_statistics): Fix format and + pass missing argument. + 2018-11-05 Martin Liska * symtab.c (ht_dump_statistics): Make dump conditional diff --git a/libcpp/symtab.c b/libcpp/symtab.c index e6e5bcb1cef9..0976c43b0027 100644 --- a/libcpp/symtab.c +++ b/libcpp/symtab.c @@ -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));