summaryrefslogtreecommitdiff
path: root/sys/dev/flash
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2010-07-16 04:26:37 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2010-07-16 04:26:37 +0000
commite87f728e2358815c2135fe8c530cc2384001093b (patch)
treef231d8722696c9a7d846aba21a312719c7ec718a /sys/dev/flash
parentaa353b1b6b1831b3715db36044af77f9a62d3d0f (diff)
Notes
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 41e4e1345705..ef0488aadff1 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;