summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-03-12 00:09:05 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-03-12 00:09:05 +0000
commit2a5a0a62f80c5c4a5dad7850d81b8af05d460126 (patch)
tree26349407c5c3c8755781b1568dec4e55cd42ea67
parentdd420d8d2cf46e968449cd9843fe226db67264f2 (diff)
Do not drop the user in ddb in DIAGNOSTIC checks unless option FD_DEBUG.
-rw-r--r--sys/arch/sparc/dev/fd.c4
-rw-r--r--sys/arch/sparc64/dev/fd.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc/dev/fd.c b/sys/arch/sparc/dev/fd.c
index 5cff44d21e8..1d88fcd7b3a 100644
--- a/sys/arch/sparc/dev/fd.c
+++ b/sys/arch/sparc/dev/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.39 2004/12/25 23:02:25 miod Exp $ */
+/* $OpenBSD: fd.c,v 1.40 2005/03/12 00:09:01 miod Exp $ */
/* $NetBSD: fd.c,v 1.51 1997/05/24 20:16:19 pk Exp $ */
/*-
@@ -1409,7 +1409,7 @@ loop:
block = (fd->sc_cylin * type->heads + head) * type->sectrac + sec;
if (block != fd->sc_blkno) {
printf("fdcintr: block %d != blkno %d\n", block, fd->sc_blkno);
-#ifdef DDB
+#if defined(FD_DEBUG) && defined(DDB)
Debugger();
#endif
}}
diff --git a/sys/arch/sparc64/dev/fd.c b/sys/arch/sparc64/dev/fd.c
index e3ea4d5503e..4e24b5c5e08 100644
--- a/sys/arch/sparc64/dev/fd.c
+++ b/sys/arch/sparc64/dev/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.1 2005/03/09 18:41:49 miod Exp $ */
+/* $OpenBSD: fd.c,v 1.2 2005/03/12 00:09:04 miod Exp $ */
/* $NetBSD: fd.c,v 1.112 2003/08/07 16:29:35 agc Exp $ */
/*-
@@ -1455,7 +1455,7 @@ loop:
block = (fd->sc_cylin * type->heads + head) * type->sectrac + sec;
if (block != fd->sc_blkno) {
printf("fdcintr: block %d != blkno %d\n", block, (int)fd->sc_blkno);
-#ifdef DDB
+#if defined(FD_DEBUG) && defined(DDB)
Debugger();
#endif
}}