]> Zhao Yanbai Git Server - minix.git/commitdiff
vmassert reports also the source file in which it was triggered
authorTomas Hruby <tom@minix3.org>
Wed, 4 Nov 2009 15:30:08 +0000 (15:30 +0000)
committerTomas Hruby <tom@minix3.org>
Wed, 4 Nov 2009 15:30:08 +0000 (15:30 +0000)
kernel/debug.h

index a988e07173fe392e2f156f6b6a412acf1f53aebf..7d8dc3767dfe3c27fa5af500ad3c9c1bdf896fd5 100644 (file)
@@ -64,7 +64,7 @@
 
 #if DEBUG_VMASSERT
 #define vmassert(t) { \
-       if(!(t)) { minix_panic("vm: assert " #t " failed\n", __LINE__); } }
+       if(!(t)) { minix_panic("vm: assert " #t " failed in " __FILE__, __LINE__); } }
 #else
 #define vmassert(t) { }
 #endif