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
This commit is contained in:
Dr. David Alan Gilbert
2020-10-22 12:00:10 +01:00
committed by Nick Clifton
parent 6b4c676cc7
commit 777cd7ab3f
13 changed files with 5116 additions and 5119 deletions

View File

@@ -1,3 +1,8 @@
2020-10-22 Dr. David Alan Gilbert <dgilbert@redhat.com>
* windmc.c (write_header_define): Fix printf format.
(write_header): Likewise.
2020-10-21 Nick Clifton <nickc@redhat.com>
* dwarf.c (skip_attr_bytes): Accept DWARF versions higher than 4

File diff suppressed because it is too large Load Diff

View File

@@ -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);
}
}