PERFORCE change 111148 for review

Warner Losh imp at FreeBSD.org
Tue Dec 5 08:46:55 PST 2006


http://perforce.freebsd.org/chv.cgi?CH=111148

Change 111148 by imp at imp_lighthouse on 2006/12/05 16:46:25

	unbreak icee and remove debugs.

Affected files ...

.. //depot/projects/arm/src/sys/arm/at91/at91_twi.c#35 edit

Differences ...

==== //depot/projects/arm/src/sys/arm/at91/at91_twi.c#35 (text+ko) ====

@@ -232,8 +232,6 @@
 		err = EBUSY;
 	else if (sr & TWI_SR_NACK)
 		err = EADDRNOTAVAIL;
-	if (sr & ~bit)
-		printf("status is %x\n", sr);
 	return (err);
 }
 
@@ -271,7 +269,6 @@
 	WR4(sc, TWI_CR, TWI_CR_SWRST);
 	WR4(sc, TWI_CR, TWI_CR_MSEN | TWI_CR_SVDIS);
 	WR4(sc, TWI_CWGR, sc->cwgr);
-	printf("setting cwgr to %#x\n", sc->cwgr);
 
 	return 0;
 }
@@ -336,20 +333,16 @@
 				WR4(sc, TWI_THR, *buf++);
 				if (len == 0)
 					WR4(sc, TWI_CR, TWI_CR_STOP);
-				if ((err = at91_twi_wait(sc, TWI_SR_TXRDY))) {
-					printf("Len %d\n", len);
+				if ((err = at91_twi_wait(sc, TWI_SR_TXRDY)))
 					goto out;
-				}
 			}
 		}
 		if ((err = at91_twi_wait(sc, TWI_SR_TXCOMP)))
 			break;
 	}
 out:;
-	if (err) {
+	if (err)
 		WR4(sc, TWI_CR, TWI_CR_STOP);
-		printf("Err is %d\n", err);
-	}
 	AT91_TWI_UNLOCK(sc);
 	return (err);
 }


More information about the p4-projects mailing list