summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-01-17 02:48:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-01-17 02:48:18 +0000
commit28694ba838cce9fb8d623440db1792a5fd51ac04 (patch)
tree7b09f85e582a8f77413af31eb7cceedf48d6c76f
parent79b40b4a74e64d8a3f7a6e3ea3d51b9d16b71a40 (diff)
do not call extent_print() unless DDB || DIAGNOSTIC
-rw-r--r--sys/kern/subr_extent.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/subr_extent.c b/sys/kern/subr_extent.c
index e16bcc2a0a3..60dfa87a94b 100644
--- a/sys/kern/subr_extent.c
+++ b/sys/kern/subr_extent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_extent.c,v 1.11 2001/01/15 22:18:24 jason Exp $ */
+/* $OpenBSD: subr_extent.c,v 1.12 2001/01/17 02:48:17 deraadt Exp $ */
/* $NetBSD: subr_extent.c,v 1.7 1996/11/21 18:46:34 cgd Exp $ */
/*-
@@ -969,7 +969,9 @@ extent_free(ex, start, size, flags)
}
/* Region not found, or request otherwise invalid. */
+#if defined(DIAGNOSTIC) || defined(DDB)
extent_print(ex);
+#endif
printf("extent_free: start 0x%lx, end 0x%lx\n", start, end);
panic("extent_free: region not found");