summaryrefslogtreecommitdiff
path: root/gprof/tahoe.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-06-30 22:38:30 +0000
committerIan Lance Taylor <ian@airs.com>1999-06-30 22:38:30 +0000
commitfdcf7d43287e77faef1282771bd95a56dd141d1f (patch)
tree46d423601e62ca0ed94ac84b0e72a67f60a0c5ec /gprof/tahoe.c
parent106117aa9f2948a25030e85b9bcac81f43fdce3e (diff)
downloadbinutils-fdcf7d43287e77faef1282771bd95a56dd141d1f.tar.gz
binutils-fdcf7d43287e77faef1282771bd95a56dd141d1f.tar.bz2
binutils-fdcf7d43287e77faef1282771bd95a56dd141d1f.zip
* Many files: Add casts in many print statements to cast bfd_vma
values to unsigned long when calling printf. * Makefile.am ($(OBJECTS)): Add gmon.h. * Makefile.in: Rebuild.
Diffstat (limited to 'gprof/tahoe.c')
-rw-r--r--gprof/tahoe.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gprof/tahoe.c b/gprof/tahoe.c
index d133c177950..414b3589359 100644
--- a/gprof/tahoe.c
+++ b/gprof/tahoe.c
@@ -247,7 +247,8 @@ tahoe_find_call (parent, p_lowpc, p_highpc)
p_highpc = s_highpc;
}
DBG (CALLDEBUG, printf ("[findcall] %s: 0x%lx to 0x%lx\n",
- parent->name, p_lowpc, p_highpc));
+ parent->name, (unsigned long) p_lowpc,
+ (unsigned long) p_highpc));
for (instructp = (unsigned char *) core_text_space + p_lowpc;
instructp < (unsigned char *) core_text_space + p_highpc;
instructp += length)
@@ -310,9 +311,11 @@ tahoe_find_call (parent, p_lowpc, p_highpc)
{
child = sym_lookup (&symtab, destpc);
DBG (CALLDEBUG,
- printf ("[findcall]\tdestpc 0x%lx", destpc);
+ printf ("[findcall]\tdestpc 0x%lx",
+ (unsigned long) destpc);
printf (" child->name %s", child->name);
- printf (" child->addr 0x%lx\n", child->addr);
+ printf (" child->addr 0x%lx\n",
+ (unsigned long) child->addr);
);
if (child->addr == destpc)
{