diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-12-06 21:47:43 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-12-06 21:47:43 +0000 |
commit | 895e4b091aaf8b4ac648d187fd8abc155bb7715f (patch) | |
tree | a78b4ee26322e88d061712d28b5a62b9afb17f6f /ld/plugin.c | |
parent | 7d23e87939234d9400c2e737845bdbfb7579d85f (diff) | |
download | binutils-redhat-895e4b091aaf8b4ac648d187fd8abc155bb7715f.tar.gz |
Don't add the trailing `\n' for LDPL_ERROR.
2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
PR ld/12288
* plugin.c (message): Don't add the trailing `\n' for
LDPL_ERROR.
Diffstat (limited to 'ld/plugin.c')
-rw-r--r-- | ld/plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/plugin.c b/ld/plugin.c index db31596cce..e4943c2bdd 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; } |