public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Gaius Mulley <gaius@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/modula-2] gcc/gcc.cc fix format specifier. Date: Tue, 9 Aug 2022 22:37:04 +0000 (GMT) [thread overview] Message-ID: <20220809223705.001353858401@sourceware.org> (raw) https://gcc.gnu.org/g:82bcda7e2ad693e5352beea17787da58aa3e94b1 commit 82bcda7e2ad693e5352beea17787da58aa3e94b1 Author: Gaius Mulley <gaius.mulley@southwales.ac.uk> 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 <gaius.mulley@southwales.ac.uk> 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. */
reply other threads:[~2022-08-09 22:37 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20220809223705.001353858401@sourceware.org \ --to=gaius@gcc.gnu.org \ --cc=gcc-cvs@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: linkBe 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).