aboutsummaryrefslogtreecommitdiff
path: root/sys/pci/ncr.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2007-05-27 19:08:57 +0000
committerRobert Watson <rwatson@FreeBSD.org>2007-05-27 19:08:57 +0000
commitddc6fd32921fd837dbcc05f0c706f29eb1bff416 (patch)
tree95917fb6b88d53cc9216e5c1c0ae107fe558637f /sys/pci/ncr.c
parent9beb1d07791692695c0ff08de6944352d57334bc (diff)
downloadsrc-ddc6fd32921fd837dbcc05f0c706f29eb1bff416.tar.gz
src-ddc6fd32921fd837dbcc05f0c706f29eb1bff416.zip
Implement assert() in ncr.c using KASSERT() rather than explicitly testing
the assertion and then calling kdb_enter().
Notes
Notes: svn path=/head/; revision=170027
Diffstat (limited to 'sys/pci/ncr.c')
-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 bcd200c093af..851c43f981c3 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) { \