diff options
author | Alan Modra <amodra@gmail.com> | 2008-07-30 04:34:58 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2008-07-30 04:34:58 +0000 |
commit | 0af1713e7cd57b52f6c81f73aa58934132198880 (patch) | |
tree | af4b52a6c5f3c8cd570e4f266f019cf552d6f442 /binutils/dwarf.c | |
parent | 22ad7fee2a313665df38ad7177f962f7c13ad0b6 (diff) | |
download | gdb-0af1713e7cd57b52f6c81f73aa58934132198880.zip gdb-0af1713e7cd57b52f6c81f73aa58934132198880.tar.gz gdb-0af1713e7cd57b52f6c81f73aa58934132198880.tar.bz2 |
Silence gcc printf warnings
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r-- | binutils/dwarf.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index d23fec2..26ab941 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -1524,7 +1524,7 @@ read_and_display_attr_value (unsigned long attribute, if (uvalue >= section->size) warn (_("Offset %lx used as value for DW_AT_import attribute of DIE at offset %lx is too big.\n"), - uvalue, (long int)(orig_data - section->start)); + uvalue, (unsigned long) (orig_data - section->start)); else { unsigned long abbrev_number; @@ -3109,10 +3109,12 @@ display_debug_loc (struct dwarf_section *section, void *file) { if (start < next) warn (_("There is a hole [0x%lx - 0x%lx] in .debug_loc section.\n"), - (long)(start - section_begin), (long)(next - section_begin)); + (unsigned long) (start - section_begin), + (unsigned long) (next - section_begin)); else if (start > next) warn (_("There is an overlap [0x%lx - 0x%lx] in .debug_loc section.\n"), - (long)(start - section_begin), (long)(next - section_begin)); + (unsigned long) (start - section_begin), + (unsigned long) (next - section_begin)); } start = next; @@ -3502,12 +3504,12 @@ display_debug_ranges (struct dwarf_section *section, { if (start < next) warn (_("There is a hole [0x%lx - 0x%lx] in %s section.\n"), - (long)(start - section_begin), - (long)(next - section_begin), section->name); + (unsigned long) (start - section_begin), + (unsigned long) (next - section_begin), section->name); else if (start > next) warn (_("There is an overlap [0x%lx - 0x%lx] in %s section.\n"), - (long)(start - section_begin), - (long)(next - section_begin), section->name); + (unsigned long) (start - section_begin), + (unsigned long) (next - section_begin), section->name); } start = next; |