Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Mar 2017 06:23:45 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r314735 - stable/10/sys/dev/isp
Message-ID:  <201703060623.v266NjBm094857@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Mon Mar  6 06:23:45 2017
New Revision: 314735
URL: https://svnweb.freebsd.org/changeset/base/314735

Log:
  MFC r314088: Slightly polish isp_dump_atpd().

Modified:
  stable/10/sys/dev/isp/isp_freebsd.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/isp/isp_freebsd.c
==============================================================================
--- stable/10/sys/dev/isp/isp_freebsd.c	Mon Mar  6 06:23:17 2017	(r314734)
+++ stable/10/sys/dev/isp/isp_freebsd.c	Mon Mar  6 06:23:45 2017	(r314735)
@@ -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]);
 	}
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703060623.v266NjBm094857>