From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 83662 invoked by alias); 20 Dec 2018 02:49:55 -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 83439 invoked by uid 89); 20 Dec 2018 02:49:35 -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-io1-f65.google.com Received: from mail-io1-f65.google.com (HELO mail-io1-f65.google.com) (209.85.166.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 20 Dec 2018 02:49:32 +0000 Received: by mail-io1-f65.google.com with SMTP id r200so160719iod.11 for ; Wed, 19 Dec 2018 18:49:32 -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=mUA/zd9E9tZaMz0naeTOiND3P5KTXTTVI/mDr+S8heU=; b=nEI3zWVsdDqT1LQWIsALcWm8Y48EGNH6ZBKfPHPYWc/UV3OiUB4hi7U2V4BlYHripZ M7GgQkzK+4Siw0UAXK028Wx0/R3gtd5Xkr306uIjU9Vy4Wu1YX02v/7vAgAtISqbknJT foNhxXLDjJqu441nmSwg/i9iub/yDGkcpgRtUTxqKtihx1Txp4EenHicb7i4UNxb3yF9 bBbFn5o8cuxv5h/55JAEhpWaChI6sD82bDGpzcvpN40ZyagvOuzSuaIyq7l7MMCD1GhF ilEn0EpR7IJhm3TzQ0KmMNpA5hIYm0Jr3HQAPKRj6GAf9Wq8pa29TcWA9YG9HKP9fFdj n16Q== 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 m45sm4296597iti.10.2018.12.19.18.49.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Dec 2018 18:49:29 -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 02:49:00 -0000 Message-Id: <20181220024926.20546-1-xerofoify@gmail.com> X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg01436.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..4e3010df0a6 100644 --- a/fixincludes/fixincl.c +++ b/fixincludes/fixincl.c @@ -159,10 +159,10 @@ main (int argc, char** argv) tSCC zFmt[] = "\ Processed %5d files containing %d bytes \n\ -Applying %5d fixes to %d files\n\ +Applying %5lu 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 long int) ttl_data_size, apply_ct, fixed_ct, altered_ct); } #endif /* DO_STATS */ -- 2.17.1