mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-20 07:14:06 +00:00
Add some useful target mode diagnostics for incoming commands
under the AHC_SHOW_TQIN debug flag.
This commit is contained in:
parent
ad32f91b6b
commit
803bbd69c4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137871
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue