From: Ben Gras Date: Wed, 16 Mar 2011 11:57:35 +0000 (+0000) Subject: remove some debugging output from vm/region.c X-Git-Tag: v3.2.0~613 X-Git-Url: http://zhaoyanbai.com/repos/%22../static/icons/man.7.txt?a=commitdiff_plain;h=5f1ab506c8811bc58e3089a542de5736ddd49ac8;p=minix.git remove some debugging output from vm/region.c - don't print verbose process map when legitimate errors occur --- diff --git a/servers/vm/region.c b/servers/vm/region.c index 89af5afca..3d62ed3fb 100644 --- a/servers/vm/region.c +++ b/servers/vm/region.c @@ -424,7 +424,6 @@ PRIVATE vir_bytes region_find_slot_range(struct vmproc *vmp, if(maxv <= minv) { printf("region_find_slot: minv 0x%lx and bytes 0x%lx\n", minv, length); - map_printmap(vmp); return SLOT_FAIL; } } @@ -472,7 +471,6 @@ PRIVATE vir_bytes region_find_slot_range(struct vmproc *vmp, if(!foundflag) { printf("VM: region_find_slot: no 0x%lx bytes found for %d between 0x%lx and 0x%lx\n", length, vmp->vm_endpoint, minv, maxv); - map_printmap(vmp); return SLOT_FAIL; } @@ -1699,8 +1697,6 @@ PUBLIC int map_region_extend(struct vmproc *vmp, struct vir_region *vr, return OK; } - map_printmap(vmp); - return ENOMEM; } @@ -1838,8 +1834,6 @@ PUBLIC int map_remap(struct vmproc *dvmp, vir_bytes da, size_t size, assert(!(size % VM_PAGE_SIZE)); startv = region_find_slot(dvmp, dst_addr, VM_DATATOP, size); if (startv == SLOT_FAIL) { - printf("map_remap: search 0x%lx...\n", dst_addr); - map_printmap(dvmp); return ENOMEM; } /* when the user specifies the address, we cannot change it */