summaryrefslogtreecommitdiffstats
path: root/sys/dev/flash
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2010-07-16 04:26:37 +0000
committeradrian <adrian@FreeBSD.org>2010-07-16 04:26:37 +0000
commitb86c5f716ab63e4983a56906c2b043e12b5b8c91 (patch)
treef231d8722696c9a7d846aba21a312719c7ec718a /sys/dev/flash
parent4006e89baa5d42876680c2a7d00773bc7b0123fb (diff)
downloadFreeBSD-src-b86c5f716ab63e4983a56906c2b043e12b5b8c91.zip
FreeBSD-src-b86c5f716ab63e4983a56906c2b043e12b5b8c91.tar.gz
Fix KASSERT() messages to reflect reality.
Diffstat (limited to 'sys/dev/flash')
-rw-r--r--sys/dev/flash/mx25l.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/flash/mx25l.c b/sys/dev/flash/mx25l.c
index 41e4e13..ef0488a 100644
--- a/sys/dev/flash/mx25l.c
+++ b/sys/dev/flash/mx25l.c
@@ -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;
OpenPOWER on IntegriCloud