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,7 @@
2020-10-20 Dr. David Alan Gilbert <dgilbert@redhat.com>
* po/es.po: Fix printf format.
2020-10-16 Nelson Chu <nelson.chu@sifive.com> 2020-10-16 Nelson Chu <nelson.chu@sifive.com>
* elfnn-riscv.c (riscv_elf_link_hash_table): Add last_iplt_index. * elfnn-riscv.c (riscv_elf_link_hash_table): Add last_iplt_index.

View File

@ -567,7 +567,7 @@ msgstr "%B: aviso: lectura de segmento de números de línea fallada"
#: coffcode.h:4641 coffcode.h:4655 #: coffcode.h:4641 coffcode.h:4655
#, c-format #, c-format
msgid "%B: warning: illegal symbol index 0x%lx in line number entry %d" msgid "%B: warning: illegal symbol index 0x%lx in line number entry %d"
msgstr "%B: aviso: índice simbólico 0x%ld ilegal en las entradas del número de línea %d" msgstr "%B: aviso: índice simbólico 0x%lx ilegal en las entradas del número de línea %d"
#: coffcode.h:4669 #: coffcode.h:4669
#, c-format #, c-format

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> 2020-10-21 Nick Clifton <nickc@redhat.com>
* dwarf.c (skip_attr_bytes): Accept DWARF versions higher than 4 * 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 (nl != NULL)
{ {
if (mcset_out_values_are_decimal) 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 else
fprintf (fp, "//\n// MessageId: 0x%lx\n//\n", (unsigned long) vid); 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 ? ")" : ""), (tdef ? "(" : ""), (tdef ? tdef : ""), (tdef ? ")" : ""),
(unsigned long) vid); (unsigned long) vid);
else 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 ? ")" : ""), (tdef ? "(" : ""), (tdef ? tdef : ""), (tdef ? ")" : ""),
(unsigned long) vid); (unsigned long) vid);
} }
@ -872,7 +872,7 @@ write_header (FILE *fp)
fprintf (fp, "#define %s 0x%lx\n", convert_unicode_to_ACP (key->sval), fprintf (fp, "#define %s 0x%lx\n", convert_unicode_to_ACP (key->sval),
(unsigned long) key->nval); (unsigned long) key->nval);
else 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); (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), fprintf (fp, "#define %s 0x%lx\n", convert_unicode_to_ACP (key->sval),
(unsigned long) key->nval); (unsigned long) key->nval);
else 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); (unsigned long) key->nval);
} }
} }

View File

@ -1,3 +1,7 @@
2020-10-20 Dr. David Alan Gilbert <dgilbert@redhat.com>
* config/tc-arc.c (emit_insn0): Fix printf format.
2020-10-20 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com> 2020-10-20 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
* config/tc-i386.c (cpu_arch): Add CPU_ZNVER3_FLAGS flags. * config/tc-i386.c (cpu_arch): Add CPU_ZNVER3_FLAGS flags.

View File

@ -1485,7 +1485,7 @@ emit_insn0 (struct arc_insn *insn, char *where, bfd_boolean relax)
size_t total_len; size_t total_len;
pr_debug ("Emit insn : 0x%llx\n", insn->insn); pr_debug ("Emit insn : 0x%llx\n", insn->insn);
pr_debug ("\tLength : 0x%d\n", insn->len); pr_debug ("\tLength : %d\n", insn->len);
pr_debug ("\tLong imm: 0x%lx\n", insn->limm); pr_debug ("\tLong imm: 0x%lx\n", insn->limm);
/* Write out the instruction. */ /* Write out the instruction. */

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,7 @@
2020-10-20 Dr. David Alan Gilbert <dgilbert@redhat.com>
* po/es.po: Fix printf format.
2020-10-20 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com> 2020-10-20 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
* i386-dis.c (rm_table): Add tlbsync, snp, invlpgb. * i386-dis.c (rm_table): Add tlbsync, snp, invlpgb.

View File

@ -746,8 +746,8 @@ msgstr "operando fuera de rango (%ld no está entre %ld y %lu)"
#: mep-ibld.c:185 mt-ibld.c:185 or1k-ibld.c:185 xc16x-ibld.c:185 #: mep-ibld.c:185 mt-ibld.c:185 or1k-ibld.c:185 xc16x-ibld.c:185
#: xstormy16-ibld.c:185 #: xstormy16-ibld.c:185
#, c-format #, c-format
msgid "operand out of range (0x%lx not between 0 and 0x%lx)" msgid "operand out of range (%ld not between %ld and %lu)"
msgstr "operando fuera de rango (0x%lu no está entre 0 y %lx)" msgstr "operando fuera de rango (%ld no está entre %ld y %lu)"
#: epiphany-ibld.c:879 fr30-ibld.c:734 frv-ibld.c:860 ip2k-ibld.c:611 #: epiphany-ibld.c:879 fr30-ibld.c:734 frv-ibld.c:860 ip2k-ibld.c:611
#: iq2000-ibld.c:717 lm32-ibld.c:638 m32c-ibld.c:1735 m32r-ibld.c:669 #: iq2000-ibld.c:717 lm32-ibld.c:638 m32c-ibld.c:1735 m32r-ibld.c:669

View File

@ -1,3 +1,8 @@
2020-10-20 Dr. David Alan Gilbert <dgilbert@redhat.com>
* arm/armos.c (SWIread): Fix printf format.
* ppc/emul_netbsd.c (do_sigprocmask): Fix printf format.
2020-09-08 David Faust <david.faust@oracle.com> 2020-09-08 David Faust <david.faust@oracle.com>
* bpf/sem-be.c: Regenerate. * bpf/sem-be.c: Regenerate.

View File

@ -293,8 +293,8 @@ SWIread (ARMul_State * state, ARMword f, ARMword ptr, ARMword len)
{ {
sim_callback->printf_filtered sim_callback->printf_filtered
(sim_callback, (sim_callback,
"sim: Unable to read 0x%ulx bytes - out of memory\n", "sim: Unable to read 0x%lx bytes - out of memory\n",
len); (long)len);
return; return;
} }

View File

@ -650,7 +650,7 @@ do_sigprocmask(os_emul_data *emul,
#endif #endif
if (WITH_TRACE && ppc_trace[trace_os_emul]) if (WITH_TRACE && ppc_trace[trace_os_emul])
printf_filtered ("%ld, 0x%ld, 0x%ld", (long)how, (long)set, (long)oset); printf_filtered ("%ld, 0x%lx, 0x%lx", (long)how, (long)set, (long)oset);
emul_write_status(processor, 0, 0); emul_write_status(processor, 0, 0);
cpu_registers(processor)->gpr[4] = set; cpu_registers(processor)->gpr[4] = set;