OSDN Git Service

Add the trailing `\n' to pluin message.
authorhjl <hjl>
Mon, 6 Dec 2010 09:49:00 +0000 (09:49 +0000)
committerhjl <hjl>
Mon, 6 Dec 2010 09:49:00 +0000 (09:49 +0000)
2010-12-05  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12288
* plugin.c (message): Add the trailing `\n'.

ld/ChangeLog
ld/plugin.c

index bb7b5a6..4aed58c 100644 (file)
@@ -1,5 +1,10 @@
 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>
+
        * ldfile.c (ldfile_open_file_search): Check maybe_archive instead
        of is_archive.
        * emultempl/aix.em: Likewise.
index ae9c378..420fcee 100644 (file)
@@ -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;
 }