aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
Diffstat (limited to 'bfd')
-rw-r--r--bfd/format.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/bfd/format.c b/bfd/format.c
index 47c3e9b..8f3fc7e 100644
--- a/bfd/format.c
+++ b/bfd/format.c
@@ -255,15 +255,8 @@ bfd_preserve_finish (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_preserve *preserve)
static void
print_warnmsg (struct per_xvec_message **list)
{
- fflush (stdout);
- fprintf (stderr, "%s: ", _bfd_get_error_program_name ());
-
for (struct per_xvec_message *warn = *list; warn; warn = warn->next)
- {
- fputs (warn->message, stderr);
- fputc ('\n', stderr);
- }
- fflush (stderr);
+ _bfd_error_handler ("%s", warn->message);
}
static void