Implement assert() in ncr.c using KASSERT() rather than explicitly testing

the assertion and then calling kdb_enter().
This commit is contained in:
Robert Watson 2007-05-27 19:08:57 +00:00
parent 9beb1d0779
commit ddc6fd3292
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170027

View file

@ -256,12 +256,7 @@ __FBSDID("$FreeBSD$");
#ifdef DIAGNOSTIC
#define assert(expression) { \
if (!(expression)) { \
(void)printf("assertion \"%s\" failed: " \
"file \"%s\", line %d\n", \
#expression, __FILE__, __LINE__); \
kdb_enter(""); \
} \
KASSERT(expression, ("%s", #expression)); \
}
#else
#define assert(expression) { \