diff options
author | Martin Liska <mliska@suse.cz> | 2018-11-05 15:25:37 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-11-05 14:25:37 +0000 |
commit | 037903cbd136f35b899d1450d06955a5a93af67f (patch) | |
tree | aa84f68c7d5ae2f69384704992c6f9a80ef49725 /libcpp | |
parent | d89288868c748dbfe251bbdae61c420cb1970be4 (diff) | |
download | gcc-037903cbd136f35b899d1450d06955a5a93af67f.zip gcc-037903cbd136f35b899d1450d06955a5a93af67f.tar.gz gcc-037903cbd136f35b899d1450d06955a5a93af67f.tar.bz2 |
Fix printf call in symtab.c.
2018-11-05 Martin Liska <mliska@suse.cz>
* symtab.c (ht_dump_statistics): Fix format and
pass missing argument.
From-SVN: r265810
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/ChangeLog | 5 | ||||
-rw-r--r-- | libcpp/symtab.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 36ee636..53fb80f 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,5 +1,10 @@ 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 based on alloc_subobject. diff --git a/libcpp/symtab.c b/libcpp/symtab.c index e6e5bcb..0976c43 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)); |