diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2004-08-03 12:10:49 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2004-08-03 12:10:49 +0000 |
commit | 57bba588fb2f5a81bccbc1d52774403db366f7cc (patch) | |
tree | fd33ea2d01625a5dedf9ca15fafd8c53a78b4218 /sys/arch/mac68k/dev/z8530sc.c | |
parent | c04b122966d038b53c821703962a4d199da35cee (diff) |
the rest of the '#if DIAGNOSTIC' -> '#ifdef DIAGNOSTIC' in the kernel; ok miod@
Diffstat (limited to 'sys/arch/mac68k/dev/z8530sc.c')
-rw-r--r-- | sys/arch/mac68k/dev/z8530sc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/mac68k/dev/z8530sc.c b/sys/arch/mac68k/dev/z8530sc.c index 37a02ad2239..acded984c68 100644 --- a/sys/arch/mac68k/dev/z8530sc.c +++ b/sys/arch/mac68k/dev/z8530sc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: z8530sc.c,v 1.5 2003/06/02 23:27:49 millert Exp $ */ +/* $OpenBSD: z8530sc.c,v 1.6 2004/08/03 12:10:47 todd Exp $ */ /* $NetBSD: z8530sc.c,v 1.1 1996/05/18 18:54:28 briggs Exp $ */ /* @@ -293,7 +293,7 @@ zsc_intr_hard(arg) register struct zs_chanstate *cs_b; register int rval; register u_char rr3, rr3a; -#if DIAGNOSTIC +#ifdef DIAGNOSTIC register int loopcount; loopcount = ZS_INTERRUPT_CNT; #endif @@ -307,7 +307,7 @@ zsc_intr_hard(arg) rr3 = zs_read_reg(cs_a, 3); while ((rr3 = zs_read_reg(cs_a, ZSRR_IPEND)) -#if DIAGNOSTIC +#ifdef DIAGNOSTIC && --loopcount #endif ) { @@ -332,7 +332,7 @@ zsc_intr_hard(arg) rr3a |= rr3; } -#if DIAGNOSTIC +#ifdef DIAGNOSTIC if (loopcount == 0) { if (rr3 & (ZSRR3_IP_A_RX | ZSRR3_IP_A_TX | ZSRR3_IP_A_STAT)) cs_a->cs_flags |= ZS_FLAGS_INTERRUPT_OVERRUN; |