From: Tomas Hruby Date: Wed, 4 Nov 2009 15:30:08 +0000 (+0000) Subject: vmassert reports also the source file in which it was triggered X-Git-Tag: v3.1.6~222 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/index.html?a=commitdiff_plain;h=616d9366389c6e3bd347e88d307e0d31b06f8d32;p=minix.git vmassert reports also the source file in which it was triggered --- diff --git a/kernel/debug.h b/kernel/debug.h index a988e0717..7d8dc3767 100644 --- a/kernel/debug.h +++ b/kernel/debug.h @@ -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