aboutsummaryrefslogtreecommitdiff
path: root/ld/plugin.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-12-06 00:49:00 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-12-06 00:49:00 +0000
commitb7f42144490ffbd08c09c4d684ed6a332ff4daf5 (patch)
tree1552905deb38bd60318bf4c85c6c74dacf1befd5 /ld/plugin.c
parentb7f95647fd61692f386a504b17a32326259d54cf (diff)
downloadgdb-b7f42144490ffbd08c09c4d684ed6a332ff4daf5.zip
gdb-b7f42144490ffbd08c09c4d684ed6a332ff4daf5.tar.gz
gdb-b7f42144490ffbd08c09c4d684ed6a332ff4daf5.tar.bz2
Add the trailing `\n' to pluin message.
2010-12-05 H.J. Lu <hongjiu.lu@intel.com> PR ld/12288 * plugin.c (message): Add the trailing `\n'.
Diffstat (limited to 'ld/plugin.c')
-rw-r--r--ld/plugin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/plugin.c b/ld/plugin.c
index ae9c378..420fcee 100644
--- a/ld/plugin.c
+++ b/ld/plugin.c
@@ -588,12 +588,14 @@ message (int level, const char *format, ...)
default:
{
char *newfmt = ACONCAT ((level == LDPL_FATAL ? "%F" : "%X",
- format, NULL));
+ format, "\n", NULL));
vfinfo (stderr, newfmt, args, TRUE);
}
break;
}
+ fputc('\n', stderr);
+
va_end (args);
return LDPS_OK;
}