Add support for UMA_SLAB_KERNEL to page_free(). (While I'm here remove an

unnecessary newline character from the end of two panic messages.)
This commit is contained in:
alc 2009-06-18 07:27:11 +00:00
parent f0cb2be073
commit d26e62824b

View File

@ -1061,8 +1061,10 @@ page_free(void *mem, int size, u_int8_t flags)
if (flags & UMA_SLAB_KMEM)
map = kmem_map;
else if (flags & UMA_SLAB_KERNEL)
map = kernel_map;
else
panic("UMA: page_free used with invalid flags %d\n", flags);
panic("UMA: page_free used with invalid flags %d", flags);
kmem_free(map, (vm_offset_t)mem, size);
}
@ -1352,7 +1354,7 @@ keg_ctor(void *mem, int size, void *udata, int flags)
printf("zone %s ipers %d rsize %d size %d\n",
zone->uz_name, keg->uk_ipers, keg->uk_rsize,
keg->uk_size);
panic("UMA slab won't fit.\n");
panic("UMA slab won't fit.");
}
}