Module Name:    src
Committed By:   matt
Date:           Fri Apr 29 08:20:51 UTC 2011

Modified Files:
        src/sys/dev/ic [matt-nb5-mips64]: siisata.c

Log Message:
Fix sense of KASSERTMSGs


To generate a diff of this commit:
cvs rdiff -u -r1.2.14.1 -r1.2.14.2 src/sys/dev/ic/siisata.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/dev/ic/siisata.c
diff -u src/sys/dev/ic/siisata.c:1.2.14.1 src/sys/dev/ic/siisata.c:1.2.14.2
--- src/sys/dev/ic/siisata.c:1.2.14.1	Wed Apr 21 00:27:37 2010
+++ src/sys/dev/ic/siisata.c	Fri Apr 29 08:20:50 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: siisata.c,v 1.2.14.1 2010/04/21 00:27:37 matt Exp $ */
+/* $NetBSD: siisata.c,v 1.2.14.2 2011/04/29 08:20:50 matt Exp $ */
 
 /* from ahcisata_core.c */
 
@@ -1193,7 +1193,7 @@
 
 	sc = (struct siisata_softc *)schp->ata_channel.ch_atac;
 
-	KASSERTMSG(((schp->sch_active_slots & __BIT(slot)) == __BIT(slot)),
+	KASSERTMSG(((schp->sch_active_slots & __BIT(slot)) == 0),
 	    ("%s: trying to activate active slot %d", SIISATANAME(sc), slot));
 
 	SIISATA_PRB_SYNC(sc, schp, slot, BUS_DMASYNC_PREWRITE);
@@ -1215,7 +1215,7 @@
 	
 	sc = (struct siisata_softc *)schp->ata_channel.ch_atac;
 
-	KASSERTMSG(((schp->sch_active_slots & __BIT(slot)) == 0),
+	KASSERTMSG(((schp->sch_active_slots & __BIT(slot)) != 0),
 	    ("%s: trying to deactivate inactive slot %d", SIISATANAME(sc),
 	    slot));
 

Reply via email to