aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcpp/ChangeLog4
-rw-r--r--libcpp/symtab.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index 53fb80f..4f28047 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,5 +1,9 @@
2018-11-05 Martin Liska <mliska@suse.cz>
+ * symtab.c (ht_dump_statistics): Replace %zu with %lu format.
+
+2018-11-05 Martin Liska <mliska@suse.cz>
+
* symtab.c (ht_dump_statistics): Fix format and
pass missing argument.
diff --git a/libcpp/symtab.c b/libcpp/symtab.c
index 0976c43..de30bb8 100644
--- a/libcpp/symtab.c
+++ b/libcpp/symtab.c
@@ -321,7 +321,7 @@ ht_dump_statistics (cpp_hash_table *table)
else
{
overhead = obstack_memory_used (&table->stack) - total_bytes;
- fprintf (stderr, "obstack bytes\t%zu%c (%zu%c overhead)\n",
+ fprintf (stderr, "obstack bytes\t%lu%c (%lu%c overhead)\n",
SCALE (total_bytes), LABEL (total_bytes),
SCALE (overhead), LABEL (overhead));
}