diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-08-22 22:17:18 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-08-22 22:17:18 +0200 |
commit | dc642e0d98d9f0ed2506cf5abcbbf49be1c0cca7 (patch) | |
tree | 0d4d86b9b945dcd3845603e9b20a6e7cddcf9295 /kern/zalloc.c | |
parent | b248c9bbf280be1bef229b58c4494f223728dbd3 (diff) |
Add more details to "zone exhausted" panics.
* kern/zalloc (zalloc): Add more details to "zone exhausted" panics.
Diffstat (limited to 'kern/zalloc.c')
-rw-r--r-- | kern/zalloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kern/zalloc.c b/kern/zalloc.c index a95c7f6..43836a6 100644 --- a/kern/zalloc.c +++ b/kern/zalloc.c @@ -483,7 +483,7 @@ vm_offset_t zalloc(zone_t zone) if (kmem_alloc_pageable(zone_map, &addr, zone->alloc_size) != KERN_SUCCESS) - panic("zalloc: zone %s exhausted", + panic("zalloc: no pageable memory for zone %s", zone->zone_name); zcram(zone, addr, zone->alloc_size); zone_lock(zone); @@ -496,7 +496,7 @@ vm_offset_t zalloc(zone_t zone) if (kmem_alloc_wired(zone_map, &addr, zone->alloc_size) != KERN_SUCCESS) - panic("zalloc: zone %s exhausted", + panic("zalloc: no wired memory for zone %s", zone->zone_name); zone_page_init(addr, zone->alloc_size, ZONE_PAGE_USED); @@ -506,7 +506,7 @@ vm_offset_t zalloc(zone_t zone) } else { addr = zget_space(zone->elem_size, zone->align); if (addr == 0) - panic("zalloc: zone %s exhausted", + panic("zalloc: no memory for zone %s", zone->zone_name); zone_lock(zone); |