Message ID | 2af1c7e7-b049-17fd-fa13-12d90161cd24@suse.cz |
---|---|
State | New |
Headers | show |
Series | [OBVIOUS] Fix printf call in symtab.c. | expand |
One more change is needed.
Thanks for understanding,
Martin
From 60d59b8b3deea1b59c135705b333ddf2ab6a9ba4 Mon Sep 17 00:00:00 2001
From: marxin <mliska@suse.cz>
Date: Mon, 5 Nov 2018 15:28:21 +0100
Subject: [PATCH] Do not use %zu format in libcpp.
libcpp/ChangeLog:
2018-11-05 Martin Liska <mliska@suse.cz>
* symtab.c (ht_dump_statistics): Replace %zu with %lu format.
---
libcpp/symtab.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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));
}
From 873c7df254f98b27a83272abd9f60adb32741026 Mon Sep 17 00:00:00 2001 From: marxin <mliska@suse.cz> Date: Mon, 5 Nov 2018 15:22:20 +0100 Subject: [PATCH] Fix printf call in symtab.c. libcpp/ChangeLog: 2018-11-05 Martin Liska <mliska@suse.cz> * symtab.c (ht_dump_statistics): Fix format and pass missing argument. --- libcpp/symtab.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libcpp/symtab.c b/libcpp/symtab.c index e6e5bcb1cef..0976c43b002 100644 --- a/libcpp/symtab.c +++ b/libcpp/symtab.c @@ -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)); -- 2.19.1