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 /bfd/xsym.c | |
parent | 22ad7fee2a313665df38ad7177f962f7c13ad0b6 (diff) | |
download | gdb-0af1713e7cd57b52f6c81f73aa58934132198880.zip gdb-0af1713e7cd57b52f6c81f73aa58934132198880.tar.gz gdb-0af1713e7cd57b52f6c81f73aa58934132198880.tar.bz2 |
Silence gcc printf warnings
Diffstat (limited to 'bfd/xsym.c')
-rw-r--r-- | bfd/xsym.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ /* xSYM symbol-file support for BFD. - Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 + Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -1640,7 +1640,7 @@ bfd_sym_print_type_information (bfd *abfd, bfd_sym_symbol_name (abfd, tinfo.nte_index)[0], &bfd_sym_symbol_name (abfd, tinfo.nte_index)[1]); } - fprintf (f, " (TTE %lu)", value); + fprintf (f, " (TTE %lu)", (unsigned long) value); break; } @@ -1701,13 +1701,13 @@ bfd_sym_print_type_information (bfd *abfd, fprintf (f, "union (0x%x) of ", type); bfd_sym_fetch_long (buf, len, offset, &offset, &nrec); - fprintf (f, "%lu elements: ", nrec); + fprintf (f, "%lu elements: ", (unsigned long) nrec); for (i = 0; i < nrec; i++) { bfd_sym_fetch_long (buf, len, offset, &offset, &eloff); fprintf (f, "\n "); - fprintf (f, "offset %lu: ", eloff); + fprintf (f, "offset %lu: ", (unsigned long) eloff); bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset); } break; @@ -1735,7 +1735,7 @@ bfd_sym_print_type_information (bfd *abfd, bfd_sym_symbol_name (abfd, value)[0], &bfd_sym_symbol_name (abfd, value)[1]); - fprintf (f, " (NTE %lu) with type ", value); + fprintf (f, " (NTE %lu) with type ", (unsigned long) value); bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset); break; } |