public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/modula-2] gcc/gcc.cc fix format specifier.
@ 2022-08-09 22:37 Gaius Mulley
  0 siblings, 0 replies; only message in thread
From: Gaius Mulley @ 2022-08-09 22:37 UTC (permalink / raw)
  To: gcc-cvs

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.  */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-09 22:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-09 22:37 [gcc/devel/modula-2] gcc/gcc.cc fix format specifier Gaius Mulley

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).