From: Ian Lance Taylor Date: Tue, 22 Feb 2000 07:25:46 +0000 (+0000) Subject: From Brad Lucier : X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=0e69fcbcf49e7b8c9bbc85f335d7782df4cb87c2;p=deliverable%2Fbinutils-gdb.git From Brad Lucier : * 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. --- diff --git a/gprof/ChangeLog b/gprof/ChangeLog index d121301027..e921ffc6c8 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,11 @@ +2000-02-22 Ian Lance Taylor + + From Brad Lucier : + * 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. + 2000-01-27 Alan Modra * utils.c (print_name_only): Don't pass error strings to 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 diff --git a/gprof/tahoe.c b/gprof/tahoe.c index 414b358935..5981bc5278 100644 --- a/gprof/tahoe.c +++ b/gprof/tahoe.c @@ -260,8 +260,10 @@ tahoe_find_call (parent, p_lowpc, p_highpc) * maybe a callf, better check it out. * skip the count of the number of arguments. */ - DBG (CALLDEBUG, printf ("[findcall]\t0x%x:callf", - instructp - (unsigned char *) core_text_space)); + DBG (CALLDEBUG, printf ("[findcall]\t0x%lx:callf", + ((unsigned long) + (instructp + - (unsigned char *) core_text_space)))); firstmode = tahoe_operandmode (instructp + length); switch (firstmode) { diff --git a/gprof/vax.c b/gprof/vax.c index 33fdf43d46..58e7de3820 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) {