diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-07-01 16:18:29 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-07-01 16:18:29 +0000 |
commit | aff2b9345be290c54333846dd43ec79dc65bff5e (patch) | |
tree | 46ba4f3c3c4a9a63f3f545b2562e745b6c6f6ed3 | |
parent | f493f0926a306b8c080500d57168d36f304aedba (diff) |
ioctl XS_SENSE/XS_SHORTSENSE should print the sense info like
everyone else when SCSIDEBUG is set.
-rw-r--r-- | sys/scsi/scsi_ioctl.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/scsi/scsi_ioctl.c b/sys/scsi/scsi_ioctl.c index 611faf70355..04ac7e8a76a 100644 --- a/sys/scsi/scsi_ioctl.c +++ b/sys/scsi/scsi_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_ioctl.c,v 1.43 2010/07/01 03:06:43 matthew Exp $ */ +/* $OpenBSD: scsi_ioctl.c,v 1.44 2010/07/01 16:18:28 krw Exp $ */ /* $NetBSD: scsi_ioctl.c,v 1.23 1996/10/12 23:23:17 christos Exp $ */ /* @@ -145,12 +145,18 @@ scsi_ioc_cmd(struct scsi_link *link, scsireq_t *screq) screq->retsts = SCCMD_OK; break; case XS_SENSE: +#ifdef SCSIDEBUG + scsi_sense_print_debug(xs); +#endif screq->senselen_used = min(sizeof(xs->sense), sizeof(screq->sense)); bcopy(&xs->sense, screq->sense, screq->senselen_used); screq->retsts = SCCMD_SENSE; break; case XS_SHORTSENSE: +#ifdef SCSIDEBUG + scsi_sense_print_debug(xs); +#endif printf("XS_SHORTSENSE\n"); screq->senselen_used = min(sizeof(xs->sense), sizeof(screq->sense)); @@ -249,6 +255,9 @@ scsi_ioc_ata_cmd(struct scsi_link *link, atareq_t *atareq) switch (xs->error) { case XS_SENSE: case XS_SHORTSENSE: +#ifdef SCSIDEBUG + scsi_sense_print_debug(xs); +#endif /* XXX this is not right */ case XS_NOERROR: atareq->retsts = ATACMD_OK; |