aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-12-06 21:47:43 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-12-06 21:47:43 +0000
commitd251c5c4e18a1f203e7ba3deffc997d9a6a0f76b (patch)
tree2788efc8980b24579711b1454c26b9d7484577a0 /ld
parentada487f6b3f8fdc448569d8cdc80f3279787ec29 (diff)
downloadgdb-d251c5c4e18a1f203e7ba3deffc997d9a6a0f76b.zip
gdb-d251c5c4e18a1f203e7ba3deffc997d9a6a0f76b.tar.gz
gdb-d251c5c4e18a1f203e7ba3deffc997d9a6a0f76b.tar.bz2
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')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/plugin.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 19f4c62..16a134a 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,6 +1,12 @@
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.
+
+2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/12288
* testplug.c: Remove the trailing `\n' from TV_MESSAGE.
2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
diff --git a/ld/plugin.c b/ld/plugin.c
index db31596..e4943c2 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;
}