aboutsummaryrefslogtreecommitdiff
path: root/gprof/gmon_io.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/gmon_io.c
parent106117aa9f2948a25030e85b9bcac81f43fdce3e (diff)
downloadfsf-binutils-gdb-fdcf7d43287e77faef1282771bd95a56dd141d1f.zip
fsf-binutils-gdb-fdcf7d43287e77faef1282771bd95a56dd141d1f.tar.gz
fsf-binutils-gdb-fdcf7d43287e77faef1282771bd95a56dd141d1f.tar.bz2
* 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/gmon_io.c')
-rw-r--r--gprof/gmon_io.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/gprof/gmon_io.c b/gprof/gmon_io.c
index ff294f5..067323c 100644
--- a/gprof/gmon_io.c
+++ b/gprof/gmon_io.c
@@ -242,11 +242,12 @@ DEFUN (gmon_out_read, (filename), const char *filename)
hist_num_bins = samp_bytes / sizeof (UNIT);
DBG (SAMPLEDEBUG,
printf ("[gmon_out_read] lowpc 0x%lx highpc 0x%lx ncnt %d\n",
- h.low_pc, h.high_pc, h.ncnt);
+ (unsigned long) h.low_pc, (unsigned long) h.high_pc,
+ h.ncnt);
printf ("[gmon_out_read] s_lowpc 0x%lx s_highpc 0x%lx\n",
- s_lowpc, s_highpc);
+ (unsigned long) s_lowpc, (unsigned long) s_highpc);
printf ("[gmon_out_read] lowpc 0x%lx highpc 0x%lx\n",
- lowpc, highpc);
+ (unsigned long) lowpc, (unsigned long) highpc);
printf ("[gmon_out_read] samp_bytes %d hist_num_bins %d\n",
samp_bytes, hist_num_bins));
@@ -286,7 +287,7 @@ DEFUN (gmon_out_read, (filename), const char *filename)
count = bfd_get_32 (core_bfd, (bfd_byte *) raw_arc.count);
DBG (SAMPLEDEBUG,
printf ("[gmon_out_read] frompc 0x%lx selfpc 0x%lx count %lu\n",
- from_pc, self_pc, count));
+ (unsigned long) from_pc, (unsigned long) self_pc, count));
/* add this arc: */
cg_tally (from_pc, self_pc, count);
}
@@ -440,7 +441,8 @@ DEFUN (gmon_out_write, (filename), const char *filename)
}
DBG (SAMPLEDEBUG,
printf ("[dumpsum] frompc 0x%lx selfpc 0x%lx count %lu\n",
- arc->parent->addr, arc->child->addr, arc->count));
+ (unsigned long) arc->parent->addr,
+ (unsigned long) arc->child->addr, arc->count));
}
}
fclose (ofp);