Fix KASSERT() messages to reflect reality.

This commit is contained in:
Adrian Chadd 2010-07-16 04:26:37 +00:00
parent aa353b1b6b
commit e87f728e23

View File

@ -303,11 +303,11 @@ mx25l_read(device_t dev, off_t offset, caddr_t data, off_t count)
* 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;