[PATCH] Use proper print formatter in main function in fixincl.c

Nicholas Krause xerofoify@gmail.com
Wed Dec 19 23:35:00 GMT 2018

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,

More information about the Gcc-patches mailing list