summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>2004-11-18 20:33:43 +0000
committergibbs <gibbs@FreeBSD.org>2004-11-18 20:33:43 +0000
commit1b5955369f3ca5b1644f1c55d677d95b203eb834 (patch)
treeda36feb7840be2b33ece06bd4c336e8527cfb72f
parentb2e3496e1c437e57b6d3c997f9346cdcafc26d27 (diff)
downloadFreeBSD-src-1b5955369f3ca5b1644f1c55d677d95b203eb834.zip
FreeBSD-src-1b5955369f3ca5b1644f1c55d677d95b203eb834.tar.gz
Add some useful target mode diagnostics for incoming commands
under the AHC_SHOW_TQIN debug flag.
-rw-r--r--sys/dev/aic7xxx/aic7xxx.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/sys/dev/aic7xxx/aic7xxx.c b/sys/dev/aic7xxx/aic7xxx.c
index 08ace3b..c60a770 100644
--- a/sys/dev/aic7xxx/aic7xxx.c
+++ b/sys/dev/aic7xxx/aic7xxx.c
@@ -7837,10 +7837,12 @@ ahc_handle_target_cmd(struct ahc_softc *ahc, struct target_cmd *cmd)
return (1);
} else
ahc->flags &= ~AHC_TQINFIFO_BLOCKED;
-#if 0
- printf("Incoming command from %d for %d:%d%s\n",
- initiator, target, lun,
- lstate == ahc->black_hole ? "(Black Holed)" : "");
+#ifdef AHC_DEBUG
+ if (ahc_debug & AHC_SHOW_TQIN) {
+ printf("Incoming command from %d for %d:%d%s\n",
+ initiator, target, lun,
+ lstate == ahc->black_hole ? "(Black Holed)" : "");
+ }
#endif
SLIST_REMOVE_HEAD(&lstate->accept_tios, sim_links.sle);
@@ -7900,9 +7902,11 @@ ahc_handle_target_cmd(struct ahc_softc *ahc, struct target_cmd *cmd)
* continue target I/O comes in response
* to this accept tio.
*/
-#if 0
- printf("Received Immediate Command %d:%d:%d - %p\n",
- initiator, target, lun, ahc->pending_device);
+#ifdef AHC_DEBUG
+ if (ahc_debug & AHC_SHOW_TQIN) {
+ printf("Received Immediate Command %d:%d:%d - %p\n",
+ initiator, target, lun, ahc->pending_device);
+ }
#endif
ahc->pending_device = lstate;
aic_freeze_ccb((union ccb *)atio);
OpenPOWER on IntegriCloud