* [PATCH] readelf: add missing newlines to error messages
@ 2020-02-02 9:15 Andreas Schwab
2020-02-03 5:31 ` Alan Modra
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2020-02-02 9:15 UTC (permalink / raw)
To: binutils
* readelf.c (dump_relocations, dump_relocations)
(decode_arm_unwind_bytecode, process_dynamic_section)
(get_symbol_visibility, get_alpha_symbol_other): Add newline to
error message.
---
binutils/readelf.c | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 45cfe1cfcf..d2ced1e791 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -1629,7 +1629,8 @@ dump_relocations (Filedata * filedata,
{
if (symtab == NULL || symtab_index >= nsyms)
{
- error (_(" bad symbol index: %08lx in reloc"), (unsigned long) symtab_index);
+ error (_(" bad symbol index: %08lx in reloc\n"),
+ (unsigned long) symtab_index);
res = FALSE;
}
else
@@ -1733,7 +1734,8 @@ dump_relocations (Filedata * filedata,
printf (_("<string table index: %3ld>"), psym->st_name);
else if (psym->st_name >= strtablen)
{
- error (_("<corrupt string table index: %3ld>"), psym->st_name);
+ error (_("<corrupt string table index: %3ld>\n"),
+ psym->st_name);
res = FALSE;
}
else
@@ -8786,7 +8788,7 @@ decode_arm_unwind_bytecode (Filedata * filedata,
}
if (i == sizeof (buf))
{
- error (_("corrupt change to vsp"));
+ error (_("corrupt change to vsp\n"));
res = FALSE;
}
else
@@ -9877,7 +9879,8 @@ process_dynamic_section (Filedata * filedata)
if ((bfd_size_type) section.sh_offset > filedata->file_size)
{
/* See PR 21379 for a reproducer. */
- error (_("Invalid DT_SYMTAB entry: %lx"), (long) section.sh_offset);
+ error (_("Invalid DT_SYMTAB entry: %lx\n"),
+ (long) section.sh_offset);
return FALSE;
}
@@ -11176,7 +11179,7 @@ get_symbol_visibility (unsigned int visibility)
case STV_HIDDEN: return "HIDDEN";
case STV_PROTECTED: return "PROTECTED";
default:
- error (_("Unrecognized visibility value: %u"), visibility);
+ error (_("Unrecognized visibility value: %u\n"), visibility);
return _("<unknown>");
}
}
@@ -11189,7 +11192,7 @@ get_alpha_symbol_other (unsigned int other)
case STO_ALPHA_NOPV: return "NOPV";
case STO_ALPHA_STD_GPLOAD: return "STD GPLOAD";
default:
- error (_("Unrecognized alpha specific other value: %u"), other);
+ error (_("Unrecognized alpha specific other value: %u\n"), other);
return _("<unknown>");
}
}
--
2.25.0
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] readelf: add missing newlines to error messages
2020-02-02 9:15 [PATCH] readelf: add missing newlines to error messages Andreas Schwab
@ 2020-02-03 5:31 ` Alan Modra
0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2020-02-03 5:31 UTC (permalink / raw)
To: Andreas Schwab; +Cc: binutils
On Sun, Feb 02, 2020 at 10:15:22AM +0100, Andreas Schwab wrote:
> * readelf.c (dump_relocations, dump_relocations)
> (decode_arm_unwind_bytecode, process_dynamic_section)
> (get_symbol_visibility, get_alpha_symbol_other): Add newline to
> error message.
OK, thanks.
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-03 5:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-02 9:15 [PATCH] readelf: add missing newlines to error messages Andreas Schwab
2020-02-03 5:31 ` Alan Modra
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).