Can I extend this panic message a bit. Just a copy of the one above.

It helped me a lot while I was debugging signed vs. unsigned issues in
AML part of the tree.


Index: kern/kern_malloc.c
===================================================================
RCS file: /cvs/src/sys/kern/kern_malloc.c,v
retrieving revision 1.91
diff -u -p -r1.91 kern_malloc.c
--- kern/kern_malloc.c  9 Mar 2012 13:01:28 -0000       1.91
+++ kern/kern_malloc.c  30 Mar 2012 22:40:43 -0000
@@ -213,7 +213,8 @@ malloc(unsigned long size, int type, int
 #endif
                        return (NULL);
                } else
-                       panic("malloc: allocation too large");
+                       panic("malloc: allocation too large, "
+                           "type = %d, size = %lu\n", type, size);
        }
 
        indx = BUCKETINDX(size);

Reply via email to