From f69149626c24ad4454b5ed7da321ac5d56274a1f Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Thu, 4 May 2006 02:34:18 +0000 Subject: [PATCH] Remove MPT_PRT_INVARIANT- it was a silly idea. --- sys/dev/mpt/mpt.h | 5 ----- sys/dev/mpt/mpt_cam.c | 6 +++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/sys/dev/mpt/mpt.h b/sys/dev/mpt/mpt.h index a13986e7e824..3694366cf03d 100644 --- a/sys/dev/mpt/mpt.h +++ b/sys/dev/mpt/mpt.h @@ -947,11 +947,6 @@ enum { MPT_PRT_TRACE, MPT_PRT_NONE=100 }; -#ifdef INVARIANTS -#define MPT_PRT_INVARIANT MPT_PRT_ALWAYS -#else -#define MPT_PRT_INVARIANT MPT_PRT_DEBUG -#endif #if __FreeBSD_version > 500000 #define mpt_lprt(mpt, level, ...) \ diff --git a/sys/dev/mpt/mpt_cam.c b/sys/dev/mpt/mpt_cam.c index 3d7a88405449..af13f5dbfb34 100644 --- a/sys/dev/mpt/mpt_cam.c +++ b/sys/dev/mpt/mpt_cam.c @@ -2197,7 +2197,7 @@ mpt_fc_els_reply_handler(struct mpt_softc *mpt, request_t *req, mpt_req_not_spcl(mpt, req, "fc_els_reply_handler", __LINE__); } #endif - mpt_lprt(mpt, MPT_PRT_INVARIANT, + mpt_lprt(mpt, MPT_PRT_DEBUG, "FC_ELS Complete: req %p:%u, reply %p function %x\n", req, req->serno, reply_frame, reply_frame->Function); @@ -2269,7 +2269,7 @@ mpt_fc_els_reply_handler(struct mpt_softc *mpt, request_t *req, /* * This is just a ack of an original ELS buffer post */ - mpt_lprt(mpt, MPT_PRT_INVARIANT, + mpt_lprt(mpt, MPT_PRT_DEBUG, "RECV'd ACK of FC_ELS buf post %p:%u\n", req, req->serno); return (TRUE); } @@ -3572,7 +3572,7 @@ mpt_fc_post_els(struct mpt_softc *mpt, request_t *req, int ioindex) se->FlagsLength <<= MPI_SGE_FLAGS_SHIFT; se->FlagsLength |= (MPT_NRFM(mpt) - MPT_RQSL(mpt)); se->Address = (uint32_t) paddr; - mpt_lprt(mpt, MPT_PRT_INVARIANT, + mpt_lprt(mpt, MPT_PRT_DEBUG, "add ELS index %d ioindex %d for %p:%u\n", req->index, ioindex, req, req->serno); KASSERT(((req->state & REQ_STATE_LOCKED) != 0),