This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Use proper print formatter in main function in fixincl.c
- From: Nicholas Krause <xerofoify at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 19 Dec 2018 18:35:14 -0500
- Subject: [PATCH] Use proper print formatter in main function in fixincl.c
This fixes the bug id, 71176 to use the proper known
code print formatter type, %lu for size_t rather than
%d which is considered best pratice for print statements.
Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
fixincludes/fixincl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fixincludes/fixincl.c b/fixincludes/fixincl.c
index 6dba2f6e830..8e16a2f7792 100644
--- a/fixincludes/fixincl.c
+++ b/fixincludes/fixincl.c
@@ -159,7 +159,7 @@ main (int argc, char** argv)
tSCC zFmt[] =
"\
Processed %5d files containing %d bytes \n\
-Applying %5d fixes to %d files\n\
+Applying %5d fixes to %lu files\n\
Altering %5d of them\n";
fprintf (stderr, zFmt, process_ct, ttl_data_size, apply_ct,
--
2.17.1