From d9b214634821128048e319c8d24c4640dab19dd2 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 6 Dec 2010 20:25:49 +0000 Subject: [PATCH] Use putchar for the trailing `\n' in plugin message. bfd/ 2010-12-06 Dmitry Gorbachev PR ld/12288 * plugin.c (message): Add putchar for the trailing `\n'. ld/ 2010-12-06 Dmitry Gorbachev PR ld/12288 * plugin.c (message): Use putchar for the trailing `\n'. --- bfd/ChangeLog | 5 +++++ bfd/plugin.c | 1 + ld/ChangeLog | 5 +++++ ld/plugin.c | 2 +- 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 16f553610b2..009a0208757 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2010-12-06 Dmitry Gorbachev + + PR ld/12288 + * plugin.c (message): Add putchar for the trailing `\n'. + 2010-12-04 Mike Frysinger * Makefile.am (!INSTALL_LIBBFD/bfdinclude_HEADERS): Set to nothing. diff --git a/bfd/plugin.c b/bfd/plugin.c index a46bf905c99..61cd6873361 100644 --- a/bfd/plugin.c +++ b/bfd/plugin.c @@ -78,6 +78,7 @@ message (int level ATTRIBUTE_UNUSED, va_start (args, format); printf ("bfd plugin: "); vprintf (format, args); + putchar ('\n'); va_end (args); return LDPS_OK; } diff --git a/ld/ChangeLog b/ld/ChangeLog index 3d200613bff..e4140e6acf9 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2010-12-06 Dmitry Gorbachev + + PR ld/12288 + * plugin.c (message): Use putchar for the trailing `\n'. + 2010-12-06 H.J. Lu Dmitry Gorbachev diff --git a/ld/plugin.c b/ld/plugin.c index 2950295b243..db31596cce6 100644 --- a/ld/plugin.c +++ b/ld/plugin.c @@ -598,7 +598,7 @@ message (int level, const char *format, ...) break; } - fputc('\n', stderr); + putchar('\n'); va_end (args); return LDPS_OK; -- 2.30.2