diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2010-12-15 08:45:59 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2010-12-15 08:45:59 +0000 |
commit | da88a7644277b9b3fdff6d5b5f48828d617517d9 (patch) | |
tree | a7522dd694283a98783888d798ffcf80dd5140a7 /binutils | |
parent | 363f826a8fa391d1c959af735e208a51e056424a (diff) | |
download | gdb-da88a7644277b9b3fdff6d5b5f48828d617517d9.zip gdb-da88a7644277b9b3fdff6d5b5f48828d617517d9.tar.gz gdb-da88a7644277b9b3fdff6d5b5f48828d617517d9.tar.bz2 |
2010-12-15 Kai Tietz <kai.tietz@onevision.com>
* dwarf.c (display_gdb_index): Fix printf types for
used formatters.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/dwarf.c | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index eb02c5e..5c495c1 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2010-12-15 Kai Tietz <kai.tietz@onevision.com> + + * dwarf.c (display_gdb_index): Fix printf types for + used formatters. + 2010-12-12 Peter Breitenlohner <peb@mppmu.mpg.de> PR binutils/12306 diff --git a/binutils/dwarf.c b/binutils/dwarf.c index dd5ccbc..6d1b65b 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -4889,13 +4889,13 @@ display_gdb_index (struct dwarf_section *section, } version = byte_get_little_endian (start, 4); - printf (_("Version %d\n"), version); + printf (_("Version %ld\n"), (long) version); /* Prior versions are obsolete, and future versions may not be backwards compatible. */ if (version != 3) { - warn (_("Unsupported version %u.\n"), version); + warn (_("Unsupported version %lu.\n"), (unsigned long) version); return 0; } @@ -4960,7 +4960,7 @@ display_gdb_index (struct dwarf_section *section, print_dwarf_vma (low, 8); print_dwarf_vma (high, 8); - printf (_("%u\n"), cu_index); + printf (_("%lu\n"), (unsigned long) cu_index); } printf (_("\nSymbol table:\n")); @@ -4982,9 +4982,9 @@ display_gdb_index (struct dwarf_section *section, cu = byte_get_little_endian (constant_pool + cu_vector_offset + 4 + j * 4, 4); /* Convert to TU number if it's for a type unit. */ if (cu >= cu_list_elements) - printf (" T%u", cu - cu_list_elements); + printf (" T%lu", (unsigned long) (cu - cu_list_elements)); else - printf (" %u", cu); + printf (" %lu", (unsigned long) cu); } printf ("\n"); } |