summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-05-27 19:08:57 +0000
committerrwatson <rwatson@FreeBSD.org>2007-05-27 19:08:57 +0000
commit8548a1df8d07b1061f626c3a05097e4fec399746 (patch)
tree95917fb6b88d53cc9216e5c1c0ae107fe558637f /sys/pci
parentdf27a8ac99afb498125bd4898a2fd12ea8479f75 (diff)
downloadFreeBSD-src-8548a1df8d07b1061f626c3a05097e4fec399746.zip
FreeBSD-src-8548a1df8d07b1061f626c3a05097e4fec399746.tar.gz
Implement assert() in ncr.c using KASSERT() rather than explicitly testing
the assertion and then calling kdb_enter().
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/ncr.c7
1 files changed, 1 insertions, 6 deletions
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) { \
OpenPOWER on IntegriCloud