svn commit: r314088 - head/sys/dev/isp

Alexander Motin mav at FreeBSD.org
Wed Feb 22 07:12:21 UTC 2017


Author: mav
Date: Wed Feb 22 07:12:20 2017
New Revision: 314088
URL: https://svnweb.freebsd.org/changeset/base/314088

Log:
  Slightly polish isp_dump_atpd().
  
  MFC after:	2 weeks

Modified:
  head/sys/dev/isp/isp_freebsd.c

Modified: head/sys/dev/isp/isp_freebsd.c
==============================================================================
--- head/sys/dev/isp/isp_freebsd.c	Wed Feb 22 07:07:05 2017	(r314087)
+++ head/sys/dev/isp/isp_freebsd.c	Wed Feb 22 07:12:20 2017	(r314088)
@@ -1008,7 +1008,9 @@ isp_dump_atpd(ispsoftc_t *isp, int chan)
 
 	ISP_GET_PC(isp, chan, atpool, atpool);
 	for (atp = atpool; atp < &atpool[ATPDPSIZE]; atp++) {
-		isp_prt(isp, ISP_LOGALL, "Chan %d ATP [0x%x] origdlen %u bytes_xfrd %u lun %jx nphdl 0x%04x s_id 0x%06x d_id 0x%06x oxid 0x%04x state %s\n",
+		if (atp->state == ATPD_STATE_FREE)
+			continue;
+		isp_prt(isp, ISP_LOGALL, "Chan %d ATP [0x%x] origdlen %u bytes_xfrd %u lun %jx nphdl 0x%04x s_id 0x%06x d_id 0x%06x oxid 0x%04x state %s",
 		    chan, atp->tag, atp->orig_datalen, atp->bytes_xfered, (uintmax_t)atp->lun, atp->nphdl, atp->sid, atp->portid, atp->oxid, states[atp->state & 0x7]);
 	}
 }


More information about the svn-src-head mailing list