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
This commit is contained in:
Martin Liska 2018-11-05 15:25:37 +01:00 committed by Martin Liska
parent d89288868c
commit 037903cbd1
2 changed files with 8 additions and 2 deletions

View 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

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