diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-06-30 22:38:30 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-06-30 22:38:30 +0000 |
commit | fdcf7d43287e77faef1282771bd95a56dd141d1f (patch) | |
tree | 46d423601e62ca0ed94ac84b0e72a67f60a0c5ec /gprof/hist.c | |
parent | 106117aa9f2948a25030e85b9bcac81f43fdce3e (diff) | |
download | gdb-fdcf7d43287e77faef1282771bd95a56dd141d1f.zip gdb-fdcf7d43287e77faef1282771bd95a56dd141d1f.tar.gz 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/hist.c')
-rw-r--r-- | gprof/hist.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/gprof/hist.c b/gprof/hist.c index 5cdbbbb..56ef25a 100644 --- a/gprof/hist.c +++ b/gprof/hist.c @@ -130,11 +130,12 @@ DEFUN (hist_read_rec, (ifp, filename), FILE * ifp AND const char *filename) DBG (SAMPLEDEBUG, printf ("[hist_read_rec] n_lowpc 0x%lx n_highpc 0x%lx ncnt %d\n", - n_lowpc, n_highpc, ncnt); + (unsigned long) n_lowpc, (unsigned long) n_highpc, ncnt); printf ("[hist_read_rec] s_lowpc 0x%lx s_highpc 0x%lx nsamples %d\n", - s_lowpc, s_highpc, hist_num_bins); + (unsigned long) s_lowpc, (unsigned long) s_highpc, + hist_num_bins); printf ("[hist_read_rec] lowpc 0x%lx highpc 0x%lx\n", - lowpc, highpc)); + (unsigned long) lowpc, (unsigned long) highpc)); if (n_lowpc != s_lowpc || n_highpc != s_highpc || ncnt != hist_num_bins || hz != profrate) @@ -229,8 +230,9 @@ scale_and_align_entries () { DBG (SAMPLEDEBUG, printf ("[scale_and_align_entries] pushing 0x%lx to 0x%lx\n", - sym->hist.scaled_addr, - sym->hist.scaled_addr + UNITS_TO_CODE)); + (unsigned long) sym->hist.scaled_addr, + (unsigned long) (sym->hist.scaled_addr + + UNITS_TO_CODE))); sym->hist.scaled_addr += UNITS_TO_CODE; } } @@ -305,7 +307,8 @@ DEFUN_VOID (hist_assign_samples) DBG (SAMPLEDEBUG, printf ( "[assign_samples] bin_low_pc=0x%lx, bin_high_pc=0x%lx, bin_count=%d\n", - sizeof (UNIT) * bin_low_pc, sizeof (UNIT) * bin_high_pc, + (unsigned long) (sizeof (UNIT) * bin_low_pc), + (unsigned long) (sizeof (UNIT) * bin_high_pc), bin_count)); total_time += time; @@ -338,9 +341,10 @@ DEFUN_VOID (hist_assign_samples) DBG (SAMPLEDEBUG, printf ( "[assign_samples] [0x%lx,0x%lx) %s gets %f ticks %ld overlap\n", - symtab.base[j].addr, sizeof (UNIT) * sym_high_pc, + (unsigned long) symtab.base[j].addr, + (unsigned long) (sizeof (UNIT) * sym_high_pc), symtab.base[j].name, overlap * time / hist_scale, - overlap)); + (long) overlap)); addr = symtab.base[j].addr; credit = overlap * time / hist_scale; /* |