summaryrefslogtreecommitdiff
path: root/bfd/ecofflink.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2008-07-30 04:34:58 +0000
committerAlan Modra <amodra@bigpond.net.au>2008-07-30 04:34:58 +0000
commit2992fc038ac25897a1324145ed146d18e83d92be (patch)
treea401676b306b6dc9984d82ea9219b4d822e4cf59 /bfd/ecofflink.c
parent1af22fcd336623a00a96c8e47db78ca5192af449 (diff)
downloadbinutils-redhat-2992fc038ac25897a1324145ed146d18e83d92be.tar.gz
Silence gcc printf warnings
Diffstat (limited to 'bfd/ecofflink.c')
-rw-r--r--bfd/ecofflink.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/ecofflink.c b/bfd/ecofflink.c
index 0b363a1162..072c97a649 100644
--- a/bfd/ecofflink.c
+++ b/bfd/ecofflink.c
@@ -1,6 +1,6 @@
/* Routines to link ECOFF debugging information.
Copyright 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003,
- 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+ 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Cygnus Support, <ian@cygnus.com>.
This file is part of BFD, the Binary File Descriptor library.
@@ -718,7 +718,8 @@ bfd_ecoff_debug_accumulate (handle, output_bfd, output_debug, output_swap,
lookup = (char *) bfd_malloc ((bfd_size_type) strlen (name) + 20);
if (lookup == NULL)
return FALSE;
- sprintf (lookup, "%s %lx %lx", name, fdr.csym, fdr.caux);
+ sprintf (lookup, "%s %lx %lx", name, (unsigned long) fdr.csym,
+ (unsigned long) fdr.caux);
fh = string_hash_lookup (&ainfo->fdr_hash, lookup, TRUE, TRUE);
free (lookup);