Do not add 1 to nsegs before passing to CTR5(), since nsegs

has already been incremented before these calls.

Sponsored by:	Intel
This commit is contained in:
Jim Harris 2013-03-29 15:54:12 +00:00
parent b327350604
commit ab72998ef7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=248892

View File

@ -282,7 +282,7 @@ bus_dmamap_load(bus_dma_tag_t dmat, bus_dmamap_t map, void *buf,
nsegs++;
CTR5(KTR_BUSDMA, "%s: tag %p tag flags 0x%x error %d nsegs %d",
__func__, dmat, flags, error, nsegs + 1);
__func__, dmat, flags, error, nsegs);
if (error == EINPROGRESS)
return (error);
@ -359,7 +359,7 @@ bus_dmamap_load_uio(bus_dma_tag_t dmat, bus_dmamap_t map, struct uio *uio,
(*callback)(callback_arg, segs, nsegs, uio->uio_resid, error);
CTR5(KTR_BUSDMA, "%s: tag %p tag flags 0x%x error %d nsegs %d",
__func__, dmat, flags, error, nsegs + 1);
__func__, dmat, flags, error, nsegs);
return (error);
}
@ -455,7 +455,7 @@ bus_dmamap_load_mem(bus_dma_tag_t dmat, bus_dmamap_t map,
nsegs++;
CTR5(KTR_BUSDMA, "%s: tag %p tag flags 0x%x error %d nsegs %d",
__func__, dmat, flags, error, nsegs + 1);
__func__, dmat, flags, error, nsegs);
if (error == EINPROGRESS)
return (error);