From b24b04de8a603a98ef718cc757fd1ccbe8696801 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Tue, 2 Nov 2010 14:55:02 +0000 Subject: Add DEBUG0 printf() for unexpected reselects. No functional change. --- sys/dev/ic/trm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/ic/trm.c b/sys/dev/ic/trm.c index 0f5e958a3a1..07290996fd0 100644 --- a/sys/dev/ic/trm.c +++ b/sys/dev/ic/trm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trm.c,v 1.25 2010/11/02 14:37:56 krw Exp $ +/* $OpenBSD: trm.c,v 1.26 2010/11/02 14:55:01 krw Exp $ * ------------------------------------------------------------ * O.S : OpenBSD * File Name : trm.c @@ -1525,6 +1525,10 @@ trm_MsgInPhase0(struct trm_softc *sc, struct trm_scsi_req_q *pSRB, u_int8_t *psc pDCB->pActiveSRB = pSRB; pSRB->SRBState = TRM_DATA_XFER; } else { +#ifdef TRM_DEBUG0 + printf("%s: TRM_UNEXPECT_RESEL!\n", + sc->sc_device.dv_xname); +#endif pSRB = &sc->SRB[0]; pSRB->SRBState = TRM_UNEXPECT_RESEL; pDCB->pActiveSRB = pSRB; -- cgit v1.2.3