svn commit: r210156 - head/sys/dev/flash

Adrian Chadd adrian at FreeBSD.org
Fri Jul 16 04:26:38 UTC 2010


Author: adrian
Date: Fri Jul 16 04:26:37 2010
New Revision: 210156
URL: http://svn.freebsd.org/changeset/base/210156

Log:
  Fix KASSERT() messages to reflect reality.

Modified:
  head/sys/dev/flash/mx25l.c   (contents, props changed)

Modified: head/sys/dev/flash/mx25l.c
==============================================================================
--- head/sys/dev/flash/mx25l.c	Fri Jul 16 03:59:50 2010	(r210155)
+++ head/sys/dev/flash/mx25l.c	Fri Jul 16 04:26:37 2010	(r210156)
@@ -303,11 +303,11 @@ mx25l_read(device_t dev, off_t offset, c
 	 * Sanity checks
 	 */
 	KASSERT(count % sc->sc_sectorsize == 0,
-	    ("count for BIO_WRITE is not sector size (%d bytes) aligned",
+	    ("count for BIO_READ is not sector size (%d bytes) aligned",
 		sc->sc_sectorsize));
 
 	KASSERT(offset % sc->sc_sectorsize == 0,
-	    ("offset for BIO_WRITE is not sector size (%d bytes) aligned",
+	    ("offset for BIO_READ is not sector size (%d bytes) aligned",
 		sc->sc_sectorsize));
 
 	txBuf[0] = CMD_FAST_READ;


More information about the svn-src-all mailing list