tweak last change
authorIan Lance Taylor <ian@airs.com>
Fri, 12 Jan 1996 20:46:22 +0000 (20:46 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 12 Jan 1996 20:46:22 +0000 (20:46 +0000)
bfd/elf.c

index 55e45300c6b8e2abc5e79adc98bbd380a19aaf5d..dab0c4d8921e07d12df228aab19fdf4db0bfff52 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -426,7 +426,7 @@ _bfd_elf_print_private_bfd_data (abfd, farg)
          switch (dyn.d_tag)
            {
            default:
-             sprintf (ab, "0x%x", dyn.d_tag);
+             sprintf (ab, "0x%lx", (unsigned long) dyn.d_tag);
              name = ab;
              break;
 
@@ -457,7 +457,7 @@ _bfd_elf_print_private_bfd_data (abfd, farg)
 
          fprintf (f, "  %-11s ", name);
          if (! stringp)
-           fprintf (f, "0x%x", dyn.d_un.d_val);
+           fprintf (f, "0x%lx", (unsigned long) dyn.d_un.d_val);
          else
            {
              const char *string;