From 8548a1df8d07b1061f626c3a05097e4fec399746 Mon Sep 17 00:00:00 2001 From: rwatson Date: Sun, 27 May 2007 19:08:57 +0000 Subject: Implement assert() in ncr.c using KASSERT() rather than explicitly testing the assertion and then calling kdb_enter(). --- sys/pci/ncr.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sys/pci/ncr.c') diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c index bcd200c..851c43f 100644 --- a/sys/pci/ncr.c +++ b/sys/pci/ncr.c @@ -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) { \ -- cgit v1.1