diff options
author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2020-10-22 12:00:10 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-10-22 12:00:10 +0100 |
commit | 777cd7ab3febadcdad52e3231e960af86e8742da (patch) | |
tree | 1108766883d3eaaf421508f8e63222d9643730a8 /binutils/windmc.c | |
parent | 6b4c676cc7f48f656cf235dd0507c41ab11d7cb5 (diff) | |
download | fsf-binutils-gdb-777cd7ab3febadcdad52e3231e960af86e8742da.zip fsf-binutils-gdb-777cd7ab3febadcdad52e3231e960af86e8742da.tar.gz fsf-binutils-gdb-777cd7ab3febadcdad52e3231e960af86e8742da.tar.bz2 |
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
Diffstat (limited to 'binutils/windmc.c')
-rw-r--r-- | binutils/windmc.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); } } |