From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57887 invoked by alias); 20 Dec 2018 22:24:05 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 56270 invoked by uid 89); 20 Dec 2018 22:24:02 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-it1-f194.google.com Received: from mail-it1-f194.google.com (HELO mail-it1-f194.google.com) (209.85.166.194) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 20 Dec 2018 22:24:01 +0000 Received: by mail-it1-f194.google.com with SMTP id i145so4321876ita.4 for ; Thu, 20 Dec 2018 14:24:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=c6zbW3cLr8TSo9ORC5CwpMnVa2Kl0T8FqeRPhSrfVMA=; b=flRAKU/QTr76UwkjUSWzsS1I0HHxBrLLxSYiAQbVWjTyuB4jE6O6NuJKrxX018M+jJ y4SyVYpCVwHiqoZrW1GKGAfeo0ePz8YZ06bRvp2EmEC/sflmRxQidF1+6PGVM+3OfhFd gL4Kv2Qj56aBJG/LnVdSsx727Ifw7m326blHequB7+sm08mZ//zqYUJ/pbil5hbAcIrt J84oSObTwT4ruRxuFzMMIcYW1fsVVWknFZ+W04OJB4GO9LRZ1ay933UYTOok4ksBJNNE yMXHiZcugbDvOQQnJNTKNivVX3m9UDhemMXUCuhbv8lX07ic1UdU+dincKdbBCLNTEk3 lYbg== Return-Path: Received: from nick-System-Product-Name.hitronhub.home (173-230-163-230.cable.teksavvy.com. [173.230.163.230]) by smtp.googlemail.com with ESMTPSA id f13sm9777734iol.82.2018.12.20.14.23.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Dec 2018 14:23:58 -0800 (PST) From: Nicholas Krause To: gcc-patches@gcc.gnu.org Subject: [PATCH] Use proper print formatter in main function in fixincl.c Date: Thu, 20 Dec 2018 22:27:00 -0000 Message-Id: <20181220222353.16951-1-xerofoify@gmail.com> X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg01512.txt.bz2 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 --- fixincludes/fixincl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fixincludes/fixincl.c b/fixincludes/fixincl.c index 6dba2f6e830..5b8b77a77f0 100644 --- a/fixincludes/fixincl.c +++ b/fixincludes/fixincl.c @@ -158,11 +158,11 @@ main (int argc, char** argv) if (VLEVEL( VERB_PROGRESS )) { tSCC zFmt[] = "\ -Processed %5d files containing %d bytes \n\ +Processed %5d files containing %lu bytes \n\ Applying %5d fixes to %d files\n\ Altering %5d of them\n"; - fprintf (stderr, zFmt, process_ct, ttl_data_size, apply_ct, + fprintf (stderr, zFmt, process_ct, (unsigned int long) ttl_data_size, apply_ct, fixed_ct, altered_ct); } #endif /* DO_STATS */ -- 2.17.1