Page MenuHomeFreeBSD

D46093.id141289.diff
No OneTemporary

D46093.id141289.diff

diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -683,7 +683,7 @@
size = *sizep;
KASSERT(size <= kmem_zmax && (flags & M_EXEC) == 0,
- ("malloc_domain: Called with bad flag / size combination."));
+ ("malloc_domain: Called with bad flag / size combination"));
if (size & KMEM_ZMASK)
size = (size & ~KMEM_ZMASK) + KMEM_ZBASE;
indx = kmemsize[size >> KMEM_ZSHIFT];
@@ -914,7 +914,7 @@
vtozoneslab((vm_offset_t)addr & (~UMA_SLAB_MASK), &zone, &slab);
if (slab == NULL)
- panic("free: address %p(%p) has not been allocated.\n",
+ panic("free: address %p(%p) has not been allocated",
addr, (void *)((u_long)addr & (~UMA_SLAB_MASK)));
if (__predict_true(!malloc_large_slab(slab))) {
@@ -954,7 +954,7 @@
vtozoneslab((vm_offset_t)addr & (~UMA_SLAB_MASK), &zone, &slab);
if (slab == NULL)
- panic("free: address %p(%p) has not been allocated.\n",
+ panic("free: address %p(%p) has not been allocated",
addr, (void *)((u_long)addr & (~UMA_SLAB_MASK)));
if (__predict_true(!malloc_large_slab(slab))) {
@@ -1098,7 +1098,7 @@
#else
vtozoneslab((vm_offset_t)addr & (~UMA_SLAB_MASK), &zone, &slab);
if (slab == NULL)
- panic("malloc_usable_size: address %p(%p) is not allocated.\n",
+ panic("malloc_usable_size: address %p(%p) is not allocated",
addr, (void *)((u_long)addr & (~UMA_SLAB_MASK)));
if (!malloc_large_slab(slab))

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 26, 3:42 PM (12 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30387925
Default Alt Text
D46093.id141289.diff (1 KB)

Event Timeline