summaryrefslogtreecommitdiff
path: root/gprof/i386.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2000-02-22 07:25:46 +0000
committerIan Lance Taylor <ian@airs.com>2000-02-22 07:25:46 +0000
commitfb6d44823d534e1f0dc13d0aebfd31f6365d72a1 (patch)
tree7a6531f5ff3491a5fedfee7d94b043faff79c6fd /gprof/i386.c
parent5497f9762aafdfb047e985fd14e29714007141ad (diff)
downloadbinutils-redhat-fb6d44823d534e1f0dc13d0aebfd31f6365d72a1.tar.gz
From Brad Lucier <lucier@math.purdue.edu>:
* i386.c (i386_find_call): Add cast to ensure that printf argument matches format. * tahoe.c (tahoe_find_call): Likewise. * vax.c (vax_find_call): Likewise.
Diffstat (limited to 'gprof/i386.c')
-rw-r--r--gprof/i386.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gprof/i386.c b/gprof/i386.c
index 2abf2dc8fa..760d5516fe 100644
--- a/gprof/i386.c
+++ b/gprof/i386.c
@@ -67,8 +67,8 @@ i386_find_call (parent, p_lowpc, p_highpc)
if (i386_iscall (instructp))
{
DBG (CALLDEBUG,
- printf ("[findcall]\t0x%x:call",
- instructp - (unsigned char *) delta));
+ printf ("[findcall]\t0x%lx:call",
+ (unsigned long) (instructp - (unsigned char *) delta)));
/*
* regular pc relative addressing
* check that this is the address of