Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149612260
D46093.id141289.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D46093.id141289.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D46093: kern_malloc: remove '.' and '\n' from KASSERT/panic
Attached
Detach File
Event Timeline
Log In to Comment