diff options
author | kevlo <kevlo@FreeBSD.org> | 2007-11-20 04:52:19 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2007-11-20 04:52:19 +0000 |
commit | 1fc52ebb1ec1e6408f91d4f2eff066df82e70838 (patch) | |
tree | d09f813182e6251be7acff88ab41547e8f8938ac /sys/dev/ata | |
parent | 55889a3fe40324be44c936826105d94d42a7b69c (diff) | |
download | FreeBSD-src-1fc52ebb1ec1e6408f91d4f2eff066df82e70838.zip FreeBSD-src-1fc52ebb1ec1e6408f91d4f2eff066df82e70838.tar.gz |
Fix KASSERT messages.
Diffstat (limited to 'sys/dev/ata')
-rw-r--r-- | sys/dev/ata/ata-chipset.c | 8 | ||||
-rw-r--r-- | sys/dev/ata/ata-dma.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ata/ata-chipset.c b/sys/dev/ata/ata-chipset.c index f7ed1eb..bdc02df 100644 --- a/sys/dev/ata/ata-chipset.c +++ b/sys/dev/ata/ata-chipset.c @@ -860,7 +860,7 @@ ata_ahci_dmasetprd(void *xsc, bus_dma_segment_t *segs, int nsegs, int error) prd[i].dbc = htole32((segs[i].ds_len - 1) & ATA_AHCI_PRD_MASK); } } - KASSERT(nsegs <= ATA_DMA_ENTRIES, "too many DMA segment entries\n"); + KASSERT(nsegs <= ATA_DMA_ENTRIES, ("too many DMA segment entries\n")); args->nsegs = nsegs; } @@ -2785,7 +2785,7 @@ ata_marvell_edma_dmasetprd(void *xsc, bus_dma_segment_t *segs, int nsegs, prd[i].addrhi = htole32((u_int64_t)segs[i].ds_addr >> 32); } prd[i - 1].count |= htole32(ATA_DMA_EOT); - KASSERT(nsegs <= ATA_DMA_ENTRIES, "too many DMA segment entries\n"); + KASSERT(nsegs <= ATA_DMA_ENTRIES, ("too many DMA segment entries\n")); args->nsegs = nsegs; } @@ -3842,7 +3842,7 @@ ata_promise_mio_setprd(void *xsc, bus_dma_segment_t *segs, int nsegs, int error) i++; } prd[i - 1].count |= htole32(ATA_DMA_EOT); - KASSERT(nsegs <= ATA_DMA_ENTRIES, "too many DMA segment entries\n"); + KASSERT(nsegs <= ATA_DMA_ENTRIES, ("too many DMA segment entries\n")); args->nsegs = nsegs; } @@ -4904,7 +4904,7 @@ ata_siiprb_dmasetprd(void *xsc, bus_dma_segment_t *segs, int nsegs, int error) prd[i].count = htole32(segs[i].ds_len); } prd[i - 1].control = htole32(ATA_DMA_EOT); - KASSERT(nsegs <= ATA_DMA_ENTRIES, "too many DMA segment entries\n"); + KASSERT(nsegs <= ATA_DMA_ENTRIES, ("too many DMA segment entries\n")); args->nsegs = nsegs; } diff --git a/sys/dev/ata/ata-dma.c b/sys/dev/ata/ata-dma.c index 1220a46..4cd3c01 100644 --- a/sys/dev/ata/ata-dma.c +++ b/sys/dev/ata/ata-dma.c @@ -213,7 +213,7 @@ ata_dmasetprd(void *xsc, bus_dma_segment_t *segs, int nsegs, int error) prd[i].count = htole32(segs[i].ds_len); } prd[i - 1].count |= htole32(ATA_DMA_EOT); - KASSERT(nsegs <= ATA_DMA_ENTRIES, "too many DMA segment entries\n"); + KASSERT(nsegs <= ATA_DMA_ENTRIES, ("too many DMA segment entries\n")); args->nsegs = nsegs; } |