public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Nicholas Krause <xerofoify@gmail.com>
To: gcc-patches@gcc.gnu.org
Subject: [PATCH] Use proper print formatter in main function in fixincl.c
Date: Wed, 19 Dec 2018 23:35:00 -0000	[thread overview]
Message-ID: <20181219233514.13889-1-xerofoify@gmail.com> (raw)

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

             reply	other threads:[~2018-12-19 23:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-19 23:35 Nicholas Krause [this message]
2018-12-20  0:20 ` Joseph Myers
2018-12-20  2:49 Nicholas Krause
2018-12-20 21:07 ` Joseph Myers
2018-12-20 22:19   ` nick
2018-12-20 22:27 Nicholas Krause
2019-01-07 15:57 ` Jonathan Wakely
2019-01-07 16:02   ` NightStrike
2019-01-07 16:04     ` Jonathan Wakely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181219233514.13889-1-xerofoify@gmail.com \
    --to=xerofoify@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).