Silence gcc printf warnings
This commit is contained in:
parent
22ad7fee2a
commit
0af1713e7c
43 changed files with 166 additions and 114 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue