From 546f678c5cc27adf9ca02cbcc578b2ddaffc0d81 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 5 Nov 2018 15:32:13 +0100 Subject: [PATCH] Do not use %zu format in libcpp. 2018-11-05 Martin Liska * symtab.c (ht_dump_statistics): Replace %zu with %lu format. From-SVN: r265811 --- libcpp/ChangeLog | 4 ++++ libcpp/symtab.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 53fb80f1afe..4f280471ba4 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,7 @@ +2018-11-05 Martin Liska + + * symtab.c (ht_dump_statistics): Replace %zu with %lu format. + 2018-11-05 Martin Liska * symtab.c (ht_dump_statistics): Fix format and diff --git a/libcpp/symtab.c b/libcpp/symtab.c index 0976c43b002..de30bb83bfc 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)); } -- 2.30.2