From 2a5a0a62f80c5c4a5dad7850d81b8af05d460126 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 12 Mar 2005 00:09:05 +0000 Subject: Do not drop the user in ddb in DIAGNOSTIC checks unless option FD_DEBUG. --- sys/arch/sparc/dev/fd.c | 4 ++-- sys/arch/sparc64/dev/fd.c | 4 ++-- 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 }} -- cgit v1.2.3