From: Martin Liska Date: Mon, 5 Nov 2018 14:32:13 +0000 (+0100) Subject: Do not use %zu format in libcpp. X-Git-Tag: basepoints/gcc-10~3310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=546f678c5cc27adf9ca02cbcc578b2ddaffc0d81;p=thirdparty%2Fgcc.git 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 --- diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 53fb80f1afe3..4f280471ba42 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 0976c43b0027..de30bb83bfcc 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)); }