X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FMBlock.c;fp=ghc%2Frts%2FMBlock.c;h=60aa97b036eb57ef98bc17cec9291b371198118f;hb=4bd153f2dd93745183584054e17c6ff169691a49;hp=ff4467fba4df10b203b51b9bceb035586350053a;hpb=6fd47823d987745c6dee66467ad138f8ddcb8446;p=ghc-hetmet.git diff --git a/ghc/rts/MBlock.c b/ghc/rts/MBlock.c index ff4467f..60aa97b 100644 --- a/ghc/rts/MBlock.c +++ b/ghc/rts/MBlock.c @@ -119,7 +119,7 @@ my_mmap (void *addr, lnat size) err = vm_allocate(mach_task_self(),(vm_address_t*) &ret, size, TRUE); if(err) // don't know what the error codes mean exactly - barf("memory allocation failed (requested %d bytes)", size); + barf("memory allocation failed (requested %lu bytes)", size); else vm_protect(mach_task_self(),ret,size,FALSE,VM_PROT_READ|VM_PROT_WRITE); #else @@ -132,7 +132,7 @@ my_mmap (void *addr, lnat size) (errno == EINVAL && sizeof(void*)==4 && size >= 0xc0000000)) { // If we request more than 3Gig, then we get EINVAL // instead of ENOMEM (at least on Linux). - errorBelch("out of memory (requested %d bytes)", size); + errorBelch("out of memory (requested %lu bytes)", size); stg_exit(EXIT_FAILURE); } else { barf("getMBlock: mmap: %s", strerror(errno));