From 5eb14f7e7caf0fc25e5449d32d79caf7f5ba9f63 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sat, 20 Jul 1996 22:02:44 +0000 Subject: [PATCH] Replace the annoying calls to Debugger() by panic()'s in the #ifdef DIAGNOSTIC case, and a warning only otherwise. People who want them to break into the debugger can always set the breakpoint explicitly. The existing behaviour was a misfeature from the beginning, in the (wrong) assumption that the SCSI controller must always be of essential importance to the entire system. --- sys/i386/isa/aha1542.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sys/i386/isa/aha1542.c b/sys/i386/isa/aha1542.c index 33a2378d6f7..1ee7db38b51 100644 --- a/sys/i386/isa/aha1542.c +++ b/sys/i386/isa/aha1542.c @@ -12,7 +12,7 @@ * on the understanding that TFS is not responsible for the correct * functioning of this software in any circumstances. * - * $Id: aha1542.c,v 1.58 1996/04/07 17:32:08 bde Exp $ + * $Id: aha1542.c,v 1.59 1996/06/12 05:03:34 gpalmer Exp $ */ /* @@ -914,7 +914,9 @@ aha_done(aha, ccb) */ if (!(xs->flags & INUSE)) { printf("aha%d: exiting but not in use!\n", aha->unit); - Debugger("aha1542"); +#ifdef DIAGNOSTIC + panic("aha1542 exiting but not in use"); +#endif } xs->status = ccb->target_stat; xs->resid = 0; @@ -1870,7 +1872,9 @@ aha_timeout(void *arg1) */ if (ccb->mbx->cmd != AHA_MBO_FREE) { printf("\nadapter not taking commands.. frozen?!\n"); - Debugger("aha1542"); +#ifdef DIAGNOSTIC + panic("aha1542 frozen"); +#endif } /* * If it has been through before, then