Commit 037903cb by Martin Liska Committed by Martin Liska

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
parent d8928886
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.
......
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment