Eliminate an unnecessary printf() from kmem_suballoc(). The subsequent

panic() can be extended to convey the same information.
This commit is contained in:
alc 2008-03-30 20:08:59 +00:00
parent 7e1a7394d9
commit a4bcbb3771

View File

@ -236,10 +236,8 @@ kmem_suballoc(parent, min, max, size)
*min = (vm_offset_t) vm_map_min(parent);
ret = vm_map_find(parent, NULL, (vm_offset_t) 0,
min, size, TRUE, VM_PROT_ALL, VM_PROT_ALL, 0);
if (ret != KERN_SUCCESS) {
printf("kmem_suballoc: bad status return of %d.\n", ret);
panic("kmem_suballoc");
}
if (ret != KERN_SUCCESS)
panic("kmem_suballoc: bad status return of %d", ret);
*max = *min + size;
result = vm_map_create(vm_map_pmap(parent), *min, *max);
if (result == NULL)