use #ifdef DDB (for consistency with the rest of the kernel)

This commit is contained in:
lukem 2001-11-28 05:45:27 +00:00
parent 371fd3fc10
commit 9f42ccc795
3 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.106 2001/07/07 20:12:54 mrg Exp $ */
/* $NetBSD: trap.c,v 1.107 2001/11/28 05:45:28 lukem Exp $ */
/*
* Copyright (c) 1996
@ -401,7 +401,7 @@ badtrap:
#ifdef FPU_DEBUG
if ((tf->tf_psr & PSR_PS) != 0) {
printf("FPU fault from kernel mode, pc=%x\n", pc);
#if DDB
#ifdef DDB
Debugger();
#endif
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: aic7xxx.c,v 1.83 2001/11/13 13:14:33 lukem Exp $ */
/* $NetBSD: aic7xxx.c,v 1.84 2001/11/28 05:45:27 lukem Exp $ */
/*
* Generic driver for the aic7xxx based adaptec SCSI controllers
@ -87,7 +87,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: aic7xxx.c,v 1.83 2001/11/13 13:14:33 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: aic7xxx.c,v 1.84 2001/11/28 05:45:27 lukem Exp $");
#include "opt_ddb.h"
#include "opt_ahc.h"
@ -2043,7 +2043,7 @@ ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat)
ahc_inb(ahc, SCBPTR));
printf("TRACEPOINT: WAITING_SCBH = %d\n", ahc_inb(ahc, WAITING_SCBH));
printf("TRACEPOINT: SCB_TAG = %d\n", ahc_inb(ahc, SCB_TAG));
#if DDB > 0
#ifdef DDB
cpu_Debugger();
#endif
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: ukbd.c,v 1.73 2001/11/15 15:15:58 augustss Exp $ */
/* $NetBSD: ukbd.c,v 1.74 2001/11/28 05:45:28 lukem Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ukbd.c,v 1.73 2001/11/15 15:15:58 augustss Exp $");
__KERNEL_RCSID(0, "$NetBSD: ukbd.c,v 1.74 2001/11/28 05:45:28 lukem Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -540,7 +540,7 @@ ukbd_intr(xfer, addr, status)
*/
sc->sc_data = *ud;
usb_callout(sc->sc_delay, hz / 50, ukbd_delayed_decode, sc);
#if DDB
#ifdef DDB
} else if (sc->sc_console_keyboard && !sc->sc_polling) {
/*
* For the console keyboard we can't deliver CTL-ALT-ESC