From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1499) id 001353858401; Tue, 9 Aug 2022 22:37:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 001353858401 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Gaius Mulley To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/modula-2] gcc/gcc.cc fix format specifier. X-Act-Checkin: gcc X-Git-Author: Gaius Mulley X-Git-Refname: refs/heads/devel/modula-2 X-Git-Oldrev: 1d7705735b94164f03a1385684ee4bbc72cc1e12 X-Git-Newrev: 82bcda7e2ad693e5352beea17787da58aa3e94b1 Message-Id: <20220809223705.001353858401@sourceware.org> Date: Tue, 9 Aug 2022 22:37:04 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2022 22:37:05 -0000 https://gcc.gnu.org/g:82bcda7e2ad693e5352beea17787da58aa3e94b1 commit 82bcda7e2ad693e5352beea17787da58aa3e94b1 Author: Gaius Mulley Date: Tue Aug 9 23:36:30 2022 +0100 gcc/gcc.cc fix format specifier. A simple patch to correct a format specifier in the debug routine. gcc/ChangeLog: * gcc.cc (print_option): Replace format specifier %ld with %lu. Signed-off-by: Gaius Mulley Diff: --- gcc/gcc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/gcc.cc b/gcc/gcc.cc index 63acae5bc3b..5a44e589992 100644 --- a/gcc/gcc.cc +++ b/gcc/gcc.cc @@ -4802,8 +4802,8 @@ print_option (const char *desc, unsigned int i, /* On some hosts value is declared as a long long int. */ printf (" value [%ld]", (long int)in_decoded_options[i].value); printf (" error [%d]", in_decoded_options[i].errors); - printf (" canonical_option_num_elements [%ld]\n", - in_decoded_options[i].canonical_option_num_elements); + printf (" canonical_option_num_elements [%lu]\n", + (unsigned long) in_decoded_options[i].canonical_option_num_elements); } /* print_options display all options with a leading string desc. */