Remove handrolled raw dump of a request from

mpt_send_cmd and replace with a new debug function.
This commit is contained in:
Matt Jacob 2006-05-26 05:41:14 +00:00
parent a296dc3e60
commit 1043516d26
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158932

View File

@ -1206,26 +1206,8 @@ mpt_get_request(struct mpt_softc *mpt, int sleep_ok)
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);