diff options
author | Ian Lynagh <igloo@earth.li> | 2012-04-26 16:52:44 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2012-04-26 16:52:44 +0100 |
commit | 1dbe6d59b621ab9bd836241d633b3a8d99812cb3 (patch) | |
tree | 6482c2019a3a85f93c9b38c0e985d77f24388692 /rts/sm/Sanity.c | |
parent | 3e314cc2060734ade9b82d4da418c119b3a05b4c (diff) | |
download | haskell-1dbe6d59b621ab9bd836241d633b3a8d99812cb3.tar.gz |
Fix warnings on Win64
Mostly this meant getting pointer<->int conversions to use the right
sizes. lnat is now size_t, rather than unsigned long, as that seems a
better match for how it's used.
Diffstat (limited to 'rts/sm/Sanity.c')
-rw-r--r-- | rts/sm/Sanity.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/rts/sm/Sanity.c b/rts/sm/Sanity.c index 78ecc96e0a..9a22dcb328 100644 --- a/rts/sm/Sanity.c +++ b/rts/sm/Sanity.c @@ -835,7 +835,7 @@ void findSlop(bdescr *bd) for (; bd != NULL; bd = bd->link) { slop = (bd->blocks * BLOCK_SIZE_W) - (bd->free - bd->start); if (slop > (1024/sizeof(W_))) { - debugBelch("block at %p (bdescr %p) has %ldKB slop\n", + debugBelch("block at %p (bdescr %p) has %" FMT_SizeT "KB slop\n", bd->start, bd, slop / (1024/sizeof(W_))); } } @@ -918,23 +918,23 @@ memInventory (rtsBool show) debugBelch("Memory inventory:\n"); } for (g = 0; g < RtsFlags.GcFlags.generations; g++) { - debugBelch(" gen %d blocks : %5lu blocks (%lu MB)\n", g, + debugBelch(" gen %d blocks : %5" FMT_SizeT " blocks (%" FMT_SizeT " MB)\n", g, gen_blocks[g], MB(gen_blocks[g])); } - debugBelch(" nursery : %5lu blocks (%lu MB)\n", + debugBelch(" nursery : %5" FMT_SizeT " blocks (%" FMT_SizeT " MB)\n", nursery_blocks, MB(nursery_blocks)); - debugBelch(" retainer : %5lu blocks (%lu MB)\n", + debugBelch(" retainer : %5" FMT_SizeT " blocks (%" FMT_SizeT " MB)\n", retainer_blocks, MB(retainer_blocks)); - debugBelch(" arena blocks : %5lu blocks (%lu MB)\n", + debugBelch(" arena blocks : %5" FMT_SizeT " blocks (%" FMT_SizeT " MB)\n", arena_blocks, MB(arena_blocks)); - debugBelch(" exec : %5lu blocks (%lu MB)\n", + debugBelch(" exec : %5" FMT_SizeT " blocks (%" FMT_SizeT " MB)\n", exec_blocks, MB(exec_blocks)); - debugBelch(" free : %5lu blocks (%lu MB)\n", + debugBelch(" free : %5" FMT_SizeT " blocks (%" FMT_SizeT " MB)\n", free_blocks, MB(free_blocks)); - debugBelch(" total : %5lu blocks (%lu MB)\n", + debugBelch(" total : %5" FMT_SizeT " blocks (%" FMT_SizeT " MB)\n", live_blocks + free_blocks, MB(live_blocks+free_blocks)); if (leak) { - debugBelch("\n in system : %5lu blocks (%lu MB)\n", + debugBelch("\n in system : %5" FMT_SizeT " blocks (%" FMT_SizeT " MB)\n", mblocks_allocated * BLOCKS_PER_MBLOCK, mblocks_allocated); } } |