summaryrefslogtreecommitdiff
path: root/rts/Stats.c
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-09-14 13:24:48 +0100
committerIan Lynagh <igloo@earth.li>2012-09-14 13:24:48 +0100
commitc38794d45334ebabe76f2a48952b8ad7bf748ea2 (patch)
tree8c9395a5db5d03d14bbbb8ab74dc28e1db7aaa64 /rts/Stats.c
parentf4d0e6282da7b37fe019aaf91a32d3f958ceec64 (diff)
downloadhaskell-c38794d45334ebabe76f2a48952b8ad7bf748ea2.tar.gz
More OS X build fixes
Diffstat (limited to 'rts/Stats.c')
-rw-r--r--rts/Stats.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/rts/Stats.c b/rts/Stats.c
index 36ca0e11b3..6c8efd638d 100644
--- a/rts/Stats.c
+++ b/rts/Stats.c
@@ -381,12 +381,12 @@ stat_endGC (Capability *cap, gc_thread *gct,
gc_cpu = cpu - gct->gc_start_cpu;
if (RtsFlags.GcFlags.giveStats == VERBOSE_GC_STATS) {
- nat faults = getPageFaults();
+ W_ faults = getPageFaults();
statsPrintf("%9" FMT_SizeT " %9" FMT_SizeT " %9" FMT_SizeT,
alloc*sizeof(W_), copied*sizeof(W_),
live*sizeof(W_));
- statsPrintf(" %5.2f %5.2f %7.2f %7.2f %4" FMT_SizeT " %4" FMT_SizeT " (Gen: %2d)\n",
+ statsPrintf(" %5.2f %5.2f %7.2f %7.2f %4" FMT_Word " %4" FMT_Word " (Gen: %2d)\n",
TimeToSecondsDbl(gc_cpu),
TimeToSecondsDbl(gc_elapsed),
TimeToSecondsDbl(cpu),
@@ -666,7 +666,7 @@ stat_exit(int alloc)
if ( residency_samples > 0 ) {
showStgWord64(max_residency*sizeof(W_),
temp, rtsTrue/*commas*/);
- statsPrintf("%16s bytes maximum residency (%" FMT_SizeT " sample(s))\n",
+ statsPrintf("%16s bytes maximum residency (%" FMT_Word " sample(s))\n",
temp, residency_samples);
}
@@ -896,12 +896,12 @@ statDescribeGens(void)
gen_blocks += gcThreadLiveBlocks(i,g);
}
- debugBelch("%5d %7" FMT_SizeT " %9d", g, (W_)gen->max_blocks, mut);
+ debugBelch("%5d %7" FMT_Word " %9d", g, (W_)gen->max_blocks, mut);
gen_slop = gen_blocks * BLOCK_SIZE_W - gen_live;
- debugBelch("%8" FMT_SizeT " %8d %8" FMT_SizeT " %8" FMT_SizeT "\n", gen_blocks, lge,
- gen_live*sizeof(W_), gen_slop*sizeof(W_));
+ debugBelch("%8" FMT_Word " %8d %8" FMT_Word " %8" FMT_Word "\n", gen_blocks, lge,
+ gen_live*(W_)sizeof(W_), gen_slop*(W_)sizeof(W_));
tot_live += gen_live;
tot_slop += gen_slop;
}