From: Ben Gras Date: Wed, 29 May 2013 11:48:54 +0000 (+0000) Subject: vm: a bit more informative about failed pagefaults X-Git-Tag: v3.3.0~953 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=refs%2Fchanges%2F00%2F600%2F2;p=minix.git vm: a bit more informative about failed pagefaults Change-Id: I2b72dfb9291670cb837dfdb279f519892575d4a6 --- diff --git a/servers/vm/mem_anon.c b/servers/vm/mem_anon.c index acd346d3c..9adc52419 100644 --- a/servers/vm/mem_anon.c +++ b/servers/vm/mem_anon.c @@ -60,8 +60,10 @@ static int anon_pagefault(struct vmproc *vmp, struct vir_region *region, assert(ph->ph->refcount > 0); - if((new_page_cl = alloc_mem(1, allocflags)) == NO_MEM) + if((new_page_cl = alloc_mem(1, allocflags)) == NO_MEM) { + printf("anon_pagefault: out of memory\n"); return ENOMEM; + } new_page = CLICK2ABS(new_page_cl); /* Totally new block? Create it. */ diff --git a/servers/vm/region.c b/servers/vm/region.c index 53611931d..d98caf5cb 100644 --- a/servers/vm/region.c +++ b/servers/vm/region.c @@ -730,7 +730,7 @@ int len; } if(r != OK) { - printf("map_pf: memtype->ev_pagefault failed\n"); + printf("map_pf: pagefault in %s failed\n", ph->memtype->name); if(ph) pb_unreferenced(region, ph, 1); return r;