diff options
Diffstat (limited to 'share/examples/scsi_target/scsi_cmds.c')
-rw-r--r-- | share/examples/scsi_target/scsi_cmds.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/share/examples/scsi_target/scsi_cmds.c b/share/examples/scsi_target/scsi_cmds.c index d624cfb..1cbe6d8 100644 --- a/share/examples/scsi_target/scsi_cmds.c +++ b/share/examples/scsi_target/scsi_cmds.c @@ -125,8 +125,10 @@ tcmd_handle(struct ccb_accept_tio *atio, struct ccb_scsiio *ctio, io_ops event) struct atio_descr *a_descr; int ret; - warnx("tcmd_handle atio %p ctio %p atioflags %#x", atio, ctio, - atio->ccb_h.flags); + if (debug) { + warnx("tcmd_handle atio %p ctio %p atioflags %#x", atio, ctio, + atio->ccb_h.flags); + } ret = 0; a_descr = (struct atio_descr *)atio->ccb_h.targ_descr; |