aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-01-12 20:46:22 +0000
committerIan Lance Taylor <ian@airs.com>1996-01-12 20:46:22 +0000
commit927d05b5a3e822c37f3b0eea3f3f5e18a7417d29 (patch)
tree69ef4894d29c4db47363e82c88cc9d1e60aac653 /bfd
parentf99d287b2a348c0ef95031023e7496b5999782de (diff)
downloadgdb-927d05b5a3e822c37f3b0eea3f3f5e18a7417d29.zip
gdb-927d05b5a3e822c37f3b0eea3f3f5e18a7417d29.tar.gz
gdb-927d05b5a3e822c37f3b0eea3f3f5e18a7417d29.tar.bz2
tweak last change
Diffstat (limited to 'bfd')
-rw-r--r--bfd/elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 55e4530..dab0c4d 100644
--- 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;