X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=rts%2FMBlock.c;h=6d05940be513d0c6953c087bd5342a21621e9d6d;hp=fa8fd49d886daa62d1f8e71d7d8c31b7cc32959e;hb=5a2769f0273dd389977e8283375e7920d183bdd4;hpb=3f10646cfe2c3409056a49d1ef1c4507af522573 diff --git a/rts/MBlock.c b/rts/MBlock.c index fa8fd49..6d05940 100644 --- a/rts/MBlock.c +++ b/rts/MBlock.c @@ -16,6 +16,7 @@ #include "RtsFlags.h" #include "MBlock.h" #include "BlockAlloc.h" +#include "Trace.h" #ifdef HAVE_STDLIB_H #include @@ -287,7 +288,7 @@ getMBlocks(nat n) // ToDo: check that we haven't already grabbed the memory at next_request next_request = ret + size; - IF_DEBUG(gc,debugBelch("Allocated %d megablock(s) at %p\n",n,ret)); + debugTrace(DEBUG_gc, "allocated %d megablock(s) at %p",n,ret); // fill in the table for (i = 0; i < n; i++) { @@ -402,7 +403,7 @@ getMBlocks(nat n) barf("getMBlocks: unknown memory allocation failure on Win32."); } - IF_DEBUG(gc,debugBelch("Allocated %d megablock(s) at 0x%x\n",n,(nat)ret)); + debugTrace(DEBUG_gc, "allocated %d megablock(s) at 0x%x",n,(nat)ret); next_request = (char*)next_request + size; mblocks_allocated += n;