diff options
author | alc <alc@FreeBSD.org> | 2008-03-30 20:08:59 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2008-03-30 20:08:59 +0000 |
commit | a4bcbb37711f4e064512236da2a4c8aedb5d472f (patch) | |
tree | 7d16c6262d7e8c2c939dcde97b2021c986a84a4a /sys/vm/vm_kern.c | |
parent | 7e1a7394d99ee57106e7edda77a38a6cd01ecf9c (diff) | |
download | FreeBSD-src-a4bcbb37711f4e064512236da2a4c8aedb5d472f.zip FreeBSD-src-a4bcbb37711f4e064512236da2a4c8aedb5d472f.tar.gz |
Eliminate an unnecessary printf() from kmem_suballoc(). The subsequent
panic() can be extended to convey the same information.
Diffstat (limited to 'sys/vm/vm_kern.c')
-rw-r--r-- | sys/vm/vm_kern.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c index 3de6b1d..9492cd4 100644 --- a/sys/vm/vm_kern.c +++ b/sys/vm/vm_kern.c @@ -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) |