aboutsummaryrefslogtreecommitdiff
path: root/gprof/vax.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
commit0e69fcbcf49e7b8c9bbc85f335d7782df4cb87c2 (patch)
treea1601bdd457294f543def4bef21ca0f64affcc41 /gprof/vax.c
parent52454417c7679a159ed6a78683f08e987951df44 (diff)
downloadgdb-0e69fcbcf49e7b8c9bbc85f335d7782df4cb87c2.zip
gdb-0e69fcbcf49e7b8c9bbc85f335d7782df4cb87c2.tar.gz
gdb-0e69fcbcf49e7b8c9bbc85f335d7782df4cb87c2.tar.bz2
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/vax.c')
-rw-r--r--gprof/vax.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gprof/vax.c b/gprof/vax.c
index 33fdf43..58e7de3 100644
--- a/gprof/vax.c
+++ b/gprof/vax.c
@@ -264,8 +264,9 @@ vax_find_call (parent, p_lowpc, p_highpc)
* skip the count of the number of arguments.
*/
DBG (CALLDEBUG,
- printf ("[findcall]\t0x%x:calls",
- instructp - (unsigned char *) core_text_space));
+ printf ("[findcall]\t0x%lx:calls",
+ ((unsigned long)
+ (instructp - (unsigned char *) core_text_space))));
firstmode = vax_operandmode ((struct modebyte *) (instructp + length));
switch (firstmode)
{