From 777cd7ab3febadcdad52e3231e960af86e8742da Mon Sep 17 00:00:00 2001 From: "Dr. David Alan Gilbert" Date: Thu, 22 Oct 2020 12:00:10 +0100 Subject: Fix printf formatting errors where "0x" is used as a prefix for a decimal number. bfd * po/es.po: Fix printf format binutils * windmc.c: Fix printf format gas * config/tc-arc.c: Fix printf format opcodes * po/es.po: Fix printf format sim * arm/armos.c: Fix printf format * ppc/emul_netbsd.c: Fix printf format -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK --- binutils/windmc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'binutils/windmc.c') diff --git a/binutils/windmc.c b/binutils/windmc.c index 3b9d2aa..97a43c1 100644 --- a/binutils/windmc.c +++ b/binutils/windmc.c @@ -377,7 +377,7 @@ write_header_define (FILE *fp, const unichar *sym_name, rc_uint_type vid, const if (nl != NULL) { if (mcset_out_values_are_decimal) - fprintf (fp, "//\n// MessageId: 0x%lu\n//\n", (unsigned long) vid); + fprintf (fp, "//\n// MessageId: %lu\n//\n", (unsigned long) vid); else fprintf (fp, "//\n// MessageId: 0x%lx\n//\n", (unsigned long) vid); } @@ -392,7 +392,7 @@ write_header_define (FILE *fp, const unichar *sym_name, rc_uint_type vid, const (tdef ? "(" : ""), (tdef ? tdef : ""), (tdef ? ")" : ""), (unsigned long) vid); else - fprintf (fp, "#define %s %s%s%s 0x%lu\n\n", sym, + fprintf (fp, "#define %s %s%s%s %lu\n\n", sym, (tdef ? "(" : ""), (tdef ? tdef : ""), (tdef ? ")" : ""), (unsigned long) vid); } @@ -872,7 +872,7 @@ write_header (FILE *fp) fprintf (fp, "#define %s 0x%lx\n", convert_unicode_to_ACP (key->sval), (unsigned long) key->nval); else - fprintf (fp, "#define %s 0x%lu\n", convert_unicode_to_ACP (key->sval), + fprintf (fp, "#define %s %lu\n", convert_unicode_to_ACP (key->sval), (unsigned long) key->nval); } } @@ -892,7 +892,7 @@ write_header (FILE *fp) fprintf (fp, "#define %s 0x%lx\n", convert_unicode_to_ACP (key->sval), (unsigned long) key->nval); else - fprintf (fp, "#define %s 0x%lu\n", convert_unicode_to_ACP (key->sval), + fprintf (fp, "#define %s %lu\n", convert_unicode_to_ACP (key->sval), (unsigned long) key->nval); } } -- cgit v1.1