Add cast to unsigned long
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 24 Dec 2014 22:14:14 +0000 (14:14 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 24 Dec 2014 22:14:14 +0000 (14:14 -0800)
* pei-x86_64.c (pex64_bfd_print_pdata_section): Add cast to
unsigned long.

bfd/ChangeLog
bfd/pei-x86_64.c

index af3fe44..c85bd07 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * pei-x86_64.c (pex64_bfd_print_pdata_section): Add cast to
+       unsigned long.
+
 2014-12-24  Pierre Muller  <muller@sourceware.org>
 
        Add support for pdata output for pe coff objects.
index 16d8899..51bf390 100644 (file)
@@ -509,7 +509,8 @@ pex64_bfd_print_pdata_section (bfd *abfd, void *vfile, asection *pdata_section)
       {
        fprintf (file,
                 _("Warning: %s section size (%ld) is smaller than virtual size (%ld)\n"),
-                pdata_section->name, datasize, stop);
+                pdata_section->name, (unsigned long) datasize,
+                (unsigned long) stop);
        /* Be sure not to read passed datasize.  */
        stop = datasize / onaline;
       }