summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/mpt_debug.c
diff options
context:
space:
mode:
authormarco <marco@openbsd.org>2006-02-04 19:05:00 +0000
committermarco <marco@openbsd.org>2006-02-04 19:05:00 +0000
commit2accc2bed9c1ead145240423064584342363fe21 (patch)
treebe14d099523f58ab651f96137e7d2ff9b3ce0098 /sys/dev/ic/mpt_debug.c
parents/amd1032cloneprobe/adm1032cloneprobe/g (diff)
downloadwireguard-openbsd-2accc2bed9c1ead145240423064584342363fe21.tar.xz
wireguard-openbsd-2accc2bed9c1ead145240423064584342363fe21.zip
Redo debugging mechanism to something less loud and more useful.
Shaves 22k of the kernel. ok krw
Diffstat (limited to 'sys/dev/ic/mpt_debug.c')
-rw-r--r--sys/dev/ic/mpt_debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/mpt_debug.c b/sys/dev/ic/mpt_debug.c
index 30c41223ca1..b446b27138d 100644
--- a/sys/dev/ic/mpt_debug.c
+++ b/sys/dev/ic/mpt_debug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpt_debug.c,v 1.4 2005/04/21 16:02:27 deraadt Exp $ */
+/* $OpenBSD: mpt_debug.c,v 1.5 2006/02/04 19:05:00 marco Exp $ */
/* $NetBSD: mpt_debug.c,v 1.2 2003/07/14 15:47:11 lukem Exp $ */
/*
@@ -40,6 +40,7 @@
#include <dev/ic/mpt.h>
+#ifdef MPT_DEBUG
char *mpt_ioc_status(int);
char *mpt_ioc_function(int);
char *mpt_ioc_event(int);
@@ -640,3 +641,4 @@ mpt_dump_sgl(SGE_IO_UNION *su)
iCount -= 1;
} while ((flags & MPI_SGE_FLAGS_END_OF_LIST) == 0 && iCount != 0);
}
+#endif /* MPT_DEBUG */