]> Git Repo - binutils.git/blobdiff - bfd/coffswap.h
Use %A and %B in more error messages
[binutils.git] / bfd / coffswap.h
index 7f2505191354116c88cbcce16529aacc3e2ff357..3c147f532288c38f36a01e21fde10efdaeadad4d 100644 (file)
@@ -808,9 +808,8 @@ coff_swap_scnhdr_out (bfd * abfd, void * in, void * out)
       buf[sizeof (scnhdr_int->s_name)] = '\0';
       _bfd_error_handler
        /* xgettext:c-format */
-       (_("%s: warning: %s: line number overflow: 0x%lx > 0xffff"),
-        bfd_get_filename (abfd),
-        buf, scnhdr_int->s_nlnno);
+       (_("%B: warning: %s: line number overflow: 0x%lx > 0xffff"),
+        abfd, buf, scnhdr_int->s_nlnno);
       PUT_SCNHDR_NLNNO (abfd, 0xffff, scnhdr_ext->s_nlnno);
     }
 
@@ -823,9 +822,8 @@ coff_swap_scnhdr_out (bfd * abfd, void * in, void * out)
       memcpy (buf, scnhdr_int->s_name, sizeof (scnhdr_int->s_name));
       buf[sizeof (scnhdr_int->s_name)] = '\0';
       /* xgettext:c-format */
-      _bfd_error_handler (_("%s: %s: reloc overflow: 0x%lx > 0xffff"),
-                         bfd_get_filename (abfd),
-                         buf, scnhdr_int->s_nreloc);
+      _bfd_error_handler (_("%B: %s: reloc overflow: 0x%lx > 0xffff"),
+                         abfd, buf, scnhdr_int->s_nreloc);
       bfd_set_error (bfd_error_file_truncated);
       PUT_SCNHDR_NRELOC (abfd, 0xffff, scnhdr_ext->s_nreloc);
       ret = 0;
This page took 0.024159 seconds and 4 git commands to generate.