Remove the extra `\n' in warning/error messages
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 11 Apr 2017 22:41:00 +0000 (15:41 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 11 Apr 2017 22:41:00 +0000 (15:41 -0700)
* elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the
extra `\n' in warning/error messages.
* elf32-i386.c (elf_i386_parse_gnu_properties): Likewise.
* elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.

bfd/ChangeLog
bfd/elf-properties.c
bfd/elf32-i386.c
bfd/elf64-x86-64.c

index 678a00787ed985b3d51371b810bbcb5477c159b5..764f534fe9df9ceeb05f905c5992a71d0513ca16 100644 (file)
@@ -1,3 +1,10 @@
+2017-04-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the
+       extra `\n' in warning/error messages.
+       * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise.
+       * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
+
 2017-04-11  H.J. Lu  <hongjiu.lu@intel.com>
 
        * elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore
index 04ef53625a3552daceb98b805f1a6b9d7de4f408..048ea9c5a49a84694edc0869f4e7e7839d628b44 100644 (file)
@@ -88,7 +88,7 @@ _bfd_elf_parse_gnu_properties (bfd *abfd, Elf_Internal_Note *note)
     {
 bad_size:
       _bfd_error_handler
-       (_("warning: %B: corrupt GNU_PROPERTY_TYPE (%ld) size: %#lx\n"),
+       (_("warning: %B: corrupt GNU_PROPERTY_TYPE (%ld) size: %#lx"),
         abfd, note->type, note->descsz);
       return FALSE;
     }
@@ -104,7 +104,7 @@ bad_size:
       if ((ptr + datasz) > ptr_end)
        {
          _bfd_error_handler
-           (_("warning: %B: corrupt GNU_PROPERTY_TYPE (%ld) type (0x%x) datasz: 0x%x\n"),
+           (_("warning: %B: corrupt GNU_PROPERTY_TYPE (%ld) type (0x%x) datasz: 0x%x"),
             abfd, note->type, type, datasz);
          /* Clear all properties.  */
          elf_properties (abfd) = NULL;
@@ -143,7 +143,7 @@ bad_size:
              if (datasz != align_size)
                {
                  _bfd_error_handler
-                   (_("warning: %B: corrupt stack size: 0x%x\n"),
+                   (_("warning: %B: corrupt stack size: 0x%x"),
                     abfd, datasz);
                  /* Clear all properties.  */
                  elf_properties (abfd) = NULL;
@@ -161,7 +161,7 @@ bad_size:
              if (datasz != 0)
                {
                  _bfd_error_handler
-                   (_("warning: %B: corrupt no copy on protected size: 0x%x\n"),
+                   (_("warning: %B: corrupt no copy on protected size: 0x%x"),
                     abfd, datasz);
                  /* Clear all properties.  */
                  elf_properties (abfd) = NULL;
@@ -177,7 +177,7 @@ bad_size:
        }
 
       _bfd_error_handler
-       (_("warning: %B: unsupported GNU_PROPERTY_TYPE (%ld) type: 0x%x\n"),
+       (_("warning: %B: unsupported GNU_PROPERTY_TYPE (%ld) type: 0x%x"),
         abfd, note->type, type);
 
 next:
index b1afb49c6a106362f09a8d0b2ce8ce9185e8fb3b..7f2723d5ff737b422a0ccc1fee636e27f15bef20 100644 (file)
@@ -6147,8 +6147,8 @@ elf_i386_parse_gnu_properties (bfd *abfd, unsigned int type,
        {
          _bfd_error_handler
            ((type == GNU_PROPERTY_X86_ISA_1_USED
-             ? _("error: %B: <corrupt x86 ISA used size: 0x%x>\n")
-             : _("error: %B: <corrupt x86 ISA needed size: 0x%x>\n")),
+             ? _("error: %B: <corrupt x86 ISA used size: 0x%x>")
+             : _("error: %B: <corrupt x86 ISA needed size: 0x%x>")),
             abfd, datasz);
          return property_corrupt;
        }
index a4048f1958450331af127494d88fab67d83b4122..5d3a65379c7180cbcfc26a4ed167801410bd29c9 100644 (file)
@@ -6913,8 +6913,8 @@ elf_x86_64_parse_gnu_properties (bfd *abfd, unsigned int type,
        {
          _bfd_error_handler
            ((type == GNU_PROPERTY_X86_ISA_1_USED
-             ? _("error: %B: <corrupt x86 ISA used size: 0x%x>\n")
-             : _("error: %B: <corrupt x86 ISA needed size: 0x%x>\n")),
+             ? _("error: %B: <corrupt x86 ISA used size: 0x%x>")
+             : _("error: %B: <corrupt x86 ISA needed size: 0x%x>")),
             abfd, datasz);
          return property_corrupt;
        }