Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x68k/dev Fix compile warnings in debug code.



details:   https://anonhg.NetBSD.org/src/rev/98b309ee249e
branches:  trunk
changeset: 534798:98b309ee249e
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sat Aug 03 06:38:41 2002 +0000

description:
Fix compile warnings in debug code.

diffstat:

 sys/arch/x68k/dev/intio_dmac.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 185e65e781c5 -r 98b309ee249e sys/arch/x68k/dev/intio_dmac.c
--- a/sys/arch/x68k/dev/intio_dmac.c    Sat Aug 03 06:12:30 2002 +0000
+++ b/sys/arch/x68k/dev/intio_dmac.c    Sat Aug 03 06:38:41 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intio_dmac.c,v 1.12 2001/11/25 16:00:05 minoura Exp $  */
+/*     $NetBSD: intio_dmac.c,v 1.13 2002/08/03 06:38:41 isaki Exp $    */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -55,8 +55,8 @@
 #include <arch/x68k/dev/dmacvar.h>
 
 #ifdef DMAC_DEBUG
-#define DPRINTF(n,x)   if (dmacdebug>(n)&0x0f) printf x
-#define DDUMPREGS(n,x) if (dmacdebug>(n)&0x0f) {printf x; dmac_dump_regs();}
+#define DPRINTF(n,x)   if (dmacdebug>((n)&0x0f)) printf x
+#define DDUMPREGS(n,x) if (dmacdebug>((n)&0x0f)) {printf x; dmac_dump_regs();}
 int dmacdebug = 0;
 #else
 #define DPRINTF(n,x)
@@ -645,7 +645,8 @@
        struct dmac_channel_stat *chan = debugchan;
        struct dmac_softc *sc;
 
-       if ((chan == 0) || (dmacdebug & 0xf0)) return;
+       if ((chan == 0) || (dmacdebug & 0xf0))
+               return 0;
        sc = (void*) chan->ch_softc;
 
        printf ("DMAC channel %d registers\n", chan->ch_channel);



Home | Main Index | Thread Index | Old Index