summaryrefslogtreecommitdiff
path: root/binutils/objdump.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2008-07-30 04:34:58 +0000
committerAlan Modra <amodra@bigpond.net.au>2008-07-30 04:34:58 +0000
commit2992fc038ac25897a1324145ed146d18e83d92be (patch)
treea401676b306b6dc9984d82ea9219b4d822e4cf59 /binutils/objdump.c
parent1af22fcd336623a00a96c8e47db78ca5192af449 (diff)
downloadbinutils-redhat-2992fc038ac25897a1324145ed146d18e83d92be.tar.gz
Silence gcc printf warnings
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r--binutils/objdump.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 74a4198849..d4c32c03a2 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -1428,7 +1428,8 @@ disassemble_bytes (struct disassemble_info * info,
if (display_file_offsets && ((addr_offset + (octets / opb)) < stop_offset))
printf ("\t... (skipping %d zeroes, resuming at file offset: 0x%lx)\n",
octets / opb,
- (long int)(section->filepos + (addr_offset + (octets / opb))));
+ (unsigned long) (section->filepos
+ + (addr_offset + (octets / opb))));
else
printf ("\t...\n");
}
@@ -2563,7 +2564,8 @@ dump_section (bfd *abfd, asection *section, void *dummy ATTRIBUTE_UNUSED)
printf (_("Contents of section %s:"), section->name);
if (display_file_offsets)
- printf (_(" (Starting at file offset: 0x%lx)"), (long int)(section->filepos + start_offset));
+ printf (_(" (Starting at file offset: 0x%lx)"),
+ (unsigned long) (section->filepos + start_offset));
printf ("\n");
data = xmalloc (datasize);