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'.
This commit is contained in:
H.J. Lu 2010-12-06 00:49:00 +00:00
parent b7f95647fd
commit b7f4214449
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
PR ld/12288
* plugin.c (message): Add the trailing `\n'.
2010-12-05 H.J. Lu <hongjiu.lu@intel.com> 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
* ldfile.c (ldfile_open_file_search): Check maybe_archive instead * ldfile.c (ldfile_open_file_search): Check maybe_archive instead

View file

@ -588,12 +588,14 @@ message (int level, const char *format, ...)
default: default:
{ {
char *newfmt = ACONCAT ((level == LDPL_FATAL ? "%F" : "%X", char *newfmt = ACONCAT ((level == LDPL_FATAL ? "%F" : "%X",
format, NULL)); format, "\n", NULL));
vfinfo (stderr, newfmt, args, TRUE); vfinfo (stderr, newfmt, args, TRUE);
} }
break; break;
} }
fputc('\n', stderr);
va_end (args); va_end (args);
return LDPS_OK; return LDPS_OK;
} }