summaryrefslogtreecommitdiff
path: root/bfd/xsym.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2008-07-30 04:34:55 +0000
committerAlan Modra <amodra@bigpond.net.au>2008-07-30 04:34:55 +0000
commit95584ca86345c94ccccdaf0c927e0f72ac7aa7c0 (patch)
treeefd9609ec9fbfc1fc22999a21ca49ca2e14935c3 /bfd/xsym.c
parent59ea9db5720df5ef9dd656d7816bc9a1190c70d3 (diff)
downloadgdb-95584ca86345c94ccccdaf0c927e0f72ac7aa7c0.tar.gz
Silence gcc printf warnings
Diffstat (limited to 'bfd/xsym.c')
-rw-r--r--bfd/xsym.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bfd/xsym.c b/bfd/xsym.c
index 49a1d60755d..ac5d80b6119 100644
--- a/bfd/xsym.c
+++ b/bfd/xsym.c
@@ -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;
}