From: H.J. Lu Date: Mon, 6 Dec 2010 21:47:43 +0000 (+0000) Subject: Don't add the trailing `\n' for LDPL_ERROR. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d251c5c4e18a1f203e7ba3deffc997d9a6a0f76b;p=binutils-gdb.git Don't add the trailing `\n' for LDPL_ERROR. 2010-12-06 H.J. Lu PR ld/12288 * plugin.c (message): Don't add the trailing `\n' for LDPL_ERROR. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 19f4c624dde..16a134ad261 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2010-12-06 H.J. Lu + + PR ld/12288 + * plugin.c (message): Don't add the trailing `\n' for + LDPL_ERROR. + 2010-12-06 H.J. Lu PR ld/12288 diff --git a/ld/plugin.c b/ld/plugin.c index db31596cce6..e4943c2bdd5 100644 --- a/ld/plugin.c +++ b/ld/plugin.c @@ -582,9 +582,11 @@ message (int level, const char *format, ...) { case LDPL_INFO: vfinfo (stdout, format, args, FALSE); + putchar ('\n'); break; case LDPL_WARNING: vfinfo (stdout, format, args, TRUE); + putchar ('\n'); break; case LDPL_FATAL: case LDPL_ERROR: @@ -598,8 +600,6 @@ message (int level, const char *format, ...) break; } - putchar('\n'); - va_end (args); return LDPS_OK; }