Module Name:    src
Committed By:   mrg
Date:           Sun Jun  6 02:51:46 UTC 2010

Modified Files:
        src/sys/arch/next68k/dev: nextdma.c

Log Message:
fix some errors in debug code, found by henning petersen in PR#42529.


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/next68k/dev/nextdma.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/next68k/dev/nextdma.c
diff -u src/sys/arch/next68k/dev/nextdma.c:1.46 src/sys/arch/next68k/dev/nextdma.c:1.47
--- src/sys/arch/next68k/dev/nextdma.c:1.46	Sat Apr 24 19:58:13 2010
+++ src/sys/arch/next68k/dev/nextdma.c	Sun Jun  6 02:51:46 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: nextdma.c,v 1.46 2010/04/24 19:58:13 dbj Exp $	*/
+/*	$NetBSD: nextdma.c,v 1.47 2010/06/06 02:51:46 mrg Exp $	*/
 /*
  * Copyright (c) 1998 Darrin B. Jewell
  * All rights reserved.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nextdma.c,v 1.46 2010/04/24 19:58:13 dbj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nextdma.c,v 1.47 2010/06/06 02:51:46 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -204,7 +204,7 @@
 		char sbuf[256];
 
 		snprintb(sbuf, sizeof(sbuf), NEXT_INTR_BITS,
-		    (NEXT_I_BIT(nsc->sc_chan->nd_intr));
+		    NEXT_I_BIT(nsc->sc_chan->nd_intr));
 		printf("DMA init ipl (%ld) intr(0x%s)\n",
 			NEXT_I_IPL(nsc->sc_chan->nd_intr), sbuf);
 	}
@@ -488,7 +488,7 @@
 		char sbuf[256];
 
 		snprintb(sbuf, sizeof(sbuf), NEXT_INTR_BITS,
-		    (NEXT_I_BIT(nsc->sc_chan->nd_intr));
+		    NEXT_I_BIT(nsc->sc_chan->nd_intr));
 		printf("DMA interrupt ipl (%ld) intr(0x%s)\n",
 		       NEXT_I_IPL(nsc->sc_chan->nd_intr), sbuf);
 	}
@@ -901,7 +901,7 @@
 	printf("NDMAP: dd->dd_stop         = 0x%08lx\n", dd_stop);
 
 	snprintb(sbuf, sizeof(sbuf), NEXT_INTR_BITS,
-	    (NEXT_I_BIT(nsc->sc_chan->nd_intr)));
+	    NEXT_I_BIT(nsc->sc_chan->nd_intr));
 	printf("NDMAP: interrupt ipl (%ld) intr(0x%s)\n",
 			NEXT_I_IPL(nsc->sc_chan->nd_intr), sbuf);
 }

Reply via email to