X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=rts%2Fhooks%2FOutOfHeap.c;h=1945c51802095a85b2adefef0c6105ff0b5a73cd;hp=98db0d7d49bfec4b98765ef42d6e498843a18143;hb=a2a67cd520b9841114d69a87a423dabcb3b4368e;hpb=0065d5ab628975892cea1ec7303f968c3338cbe1 diff --git a/rts/hooks/OutOfHeap.c b/rts/hooks/OutOfHeap.c index 98db0d7..1945c51 100644 --- a/rts/hooks/OutOfHeap.c +++ b/rts/hooks/OutOfHeap.c @@ -4,6 +4,7 @@ * * ---------------------------------------------------------------------------*/ +#include "PosixSource.h" #include "Rts.h" #include @@ -13,7 +14,7 @@ OutOfHeapHook (lnat request_size, lnat heap_size) /* both sizes in bytes */ /* fprintf(stderr, "Heap exhausted;\nwhile trying to allocate %lu bytes in a %lu-byte heap;\nuse `+RTS -H' to increase the total heap size.\n", */ (void)request_size; /* keep gcc -Wall happy */ - fprintf(stderr, "Heap exhausted;\nCurrent maximum heap size is %lu bytes (%lu Mb);\nuse `+RTS -M' to increase it.\n", + fprintf(stderr, "Heap exhausted;\nCurrent maximum heap size is %lu bytes (%lu MB);\nuse `+RTS -M' to increase it.\n", heap_size, heap_size / (1024*1024)); }