diff options
author | mjacob <mjacob@FreeBSD.org> | 2006-05-26 05:41:14 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2006-05-26 05:41:14 +0000 |
commit | 8d79d9a960e20d2fb86a4fb74531935631b98147 (patch) | |
tree | cb2dcce2e40d6594bb4d1fdfba86fc4a908e5b11 /sys/dev/mpt | |
parent | e77f57ee5494c2d899ea02fac2f3cc66dbe48d59 (diff) | |
download | FreeBSD-src-8d79d9a960e20d2fb86a4fb74531935631b98147.zip FreeBSD-src-8d79d9a960e20d2fb86a4fb74531935631b98147.tar.gz |
Remove handrolled raw dump of a request from
mpt_send_cmd and replace with a new debug function.
Diffstat (limited to 'sys/dev/mpt')
-rw-r--r-- | sys/dev/mpt/mpt.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/sys/dev/mpt/mpt.c b/sys/dev/mpt/mpt.c index e326a04..9d2d841 100644 --- a/sys/dev/mpt/mpt.c +++ b/sys/dev/mpt/mpt.c @@ -1206,26 +1206,8 @@ retry: void mpt_send_cmd(struct mpt_softc *mpt, request_t *req) { - uint32_t *pReq; - - pReq = req->req_vbuf; if (mpt->verbose > MPT_PRT_TRACE) { - int offset; -#if __FreeBSD_version >= 500000 - mpt_prt(mpt, "Send Request %d (%jx):", - req->index, (uintmax_t) req->req_pbuf); -#else - 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) { - mpt_prtc(mpt, "\n"); - mpt_prt(mpt, " "); - } - mpt_prtc(mpt, " %08x", pReq[offset]); - } - mpt_prtc(mpt, "\n"); + mpt_dump_request(mpt, req); } bus_dmamap_sync(mpt->request_dmat, mpt->request_dmap, BUS_DMASYNC_PREWRITE); |