diff options
| author | Matt Jacob <mjacob@FreeBSD.org> | 2006-12-07 22:02:28 +0000 |
|---|---|---|
| committer | Matt Jacob <mjacob@FreeBSD.org> | 2006-12-07 22:02:28 +0000 |
| commit | 0e0521a153f7aa5ca0366b00feaa450d71480cc7 (patch) | |
| tree | 6f1b8719e09c727163e5a2e858c0d2685a1e5a39 /sys/dev/mpt/mpt_debug.c | |
| parent | 54b79f047830fc294c948830d2ee7871276134ad (diff) | |
Notes
Diffstat (limited to 'sys/dev/mpt/mpt_debug.c')
| -rw-r--r-- | sys/dev/mpt/mpt_debug.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/mpt/mpt_debug.c b/sys/dev/mpt/mpt_debug.c index 53b0c26431c7..fd723cb66e20 100644 --- a/sys/dev/mpt/mpt_debug.c +++ b/sys/dev/mpt/mpt_debug.c @@ -819,7 +819,7 @@ void mpt_dump_request(struct mpt_softc *mpt, request_t *req) { uint32_t *pReq = req->req_vbuf; - int offset; + int o; #if __FreeBSD_version >= 500000 mpt_prt(mpt, "Send Request %d (%jx):", req->index, (uintmax_t) req->req_pbuf); @@ -827,12 +827,12 @@ mpt_dump_request(struct mpt_softc *mpt, request_t *req) mpt_prt(mpt, "Send Request %d (%llx):", req->index, (unsigned long long) req->req_pbuf); #endif - for (offset = 0; offset < mpt->request_frame_size; offset++) { - if ((offset & 0x7) == 0) { + for (o = 0; o < mpt->ioc_facts.RequestFrameSize; o++) { + if ((o & 0x7) == 0) { mpt_prtc(mpt, "\n"); mpt_prt(mpt, " "); } - mpt_prtc(mpt, " %08x", pReq[offset]); + mpt_prtc(mpt, " %08x", pReq[o]); } mpt_prtc(mpt, "\n"); } |
