Don't use %ll
authorAlan Modra <amodra@gmail.com>
Mon, 19 Feb 2018 08:18:15 +0000 (18:48 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 19 Feb 2018 13:25:55 +0000 (23:55 +1030)
* dwarf2.c (read_section): Don't use 'll' format modifier.
(find_abstract_instance): Likewise.
* elfcore.h (elf_core_file_p): Likewise.

bfd/ChangeLog
bfd/dwarf2.c
bfd/elfcore.h

index 349f2127f8e240cf4f32d28da996af9d5a8fa7bf..82309816e36652f0aefb050fab0a573fbabbde2e 100644 (file)
@@ -1,3 +1,9 @@
+2018-02-19  Alan Modra  <amodra@gmail.com>
+
+       * dwarf2.c (read_section): Don't use 'll' format modifier.
+       (find_abstract_instance): Likewise.
+       * elfcore.h (elf_core_file_p): Likewise.
+
 2018-02-19  Alan Modra  <amodra@gmail.com>
 
        * bfd-in.h: Include inttypes.h or if not available define
index f9561885dcba72a109359c983a12d023160093c4..b0173e983c1ed6cbe967a1396f9358e5d58fb5a1 100644 (file)
@@ -569,9 +569,9 @@ read_section (bfd *       abfd,
   if (offset != 0 && offset >= *section_size)
     {
       /* xgettext: c-format */
-      _bfd_error_handler (_("Dwarf Error: Offset (%llu)"
+      _bfd_error_handler (_("Dwarf Error: Offset (%" PRIu64 ")"
                            " greater than or equal to %s size (%" PRIu64 ")."),
-                         (long long) offset, section_name,
+                         (uint64_t) offset, section_name,
                          (uint64_t) *section_size);
       bfd_set_error (bfd_error_bad_value);
       return FALSE;
@@ -2871,8 +2871,8 @@ find_abstract_instance (struct comp_unit *   unit,
       if (info_ptr == NULL)
        {
          _bfd_error_handler
-           (_("Dwarf Error: Unable to read alt ref %llu."),
-            (long long) die_ref);
+           (_("Dwarf Error: Unable to read alt ref %" PRIu64 "."),
+            (uint64_t) die_ref);
          bfd_set_error (bfd_error_bad_value);
          return FALSE;
        }
index e0b39a7716abcac72c8592e364fcc2e48e0aeb14..117a1b72ffec51b66b58fe652f7645a37df2addb 100644 (file)
@@ -298,8 +298,8 @@ elf_core_file_p (bfd *abfd)
            _bfd_error_handler
              /* xgettext:c-format */
              (_("warning: %pB is truncated: expected core file "
-                "size >= %" PRIu64 ", found: %llu"),
-              abfd, (uint64_t) high, (unsigned long long) statbuf.st_size);
+                "size >= %" PRIu64 ", found: %" PRIu64),
+              abfd, (uint64_t) high, (uint64_t) statbuf.st_size);
          }
       }
   }