No need to print out sense data just because it happened to arrive in
a pkt. Wrap that in AHD_DEBUG.
This commit is contained in:
parent
21271b283d
commit
5d83432e24
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: aic79xx_osm.c,v 1.8 2004/04/21 18:03:13 itojun Exp $ */
|
||||
/* $NetBSD: aic79xx_osm.c,v 1.9 2004/10/04 11:08:47 fvdl Exp $ */
|
||||
|
||||
/*
|
||||
* Bus independent NetBSD shim for the aic7xxx based adaptec SCSI controllers
|
||||
@ -41,7 +41,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: aic79xx_osm.c,v 1.8 2004/04/21 18:03:13 itojun Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: aic79xx_osm.c,v 1.9 2004/10/04 11:08:47 fvdl Exp $");
|
||||
|
||||
#include <dev/ic/aic79xx_osm.h>
|
||||
#include <dev/ic/aic7xxx_cam.h>
|
||||
@ -233,8 +233,9 @@ ahd_done(struct ahd_softc *ahd, struct scb *scb)
|
||||
} else if ((scb->flags & SCB_PKT_SENSE) != 0) {
|
||||
struct scsi_status_iu_header *siu;
|
||||
u_int sense_len;
|
||||
#ifdef AHD_DEBUG
|
||||
int i;
|
||||
|
||||
#endif
|
||||
/*
|
||||
* Copy only the sense data into the provided buffer.
|
||||
*/
|
||||
@ -244,12 +245,13 @@ ahd_done(struct ahd_softc *ahd, struct scb *scb)
|
||||
memset(&xs->sense.scsi_sense, 0, sizeof(xs->sense.scsi_sense));
|
||||
memcpy(&xs->sense.scsi_sense,
|
||||
scb->sense_data + SIU_SENSE_OFFSET(siu), sense_len);
|
||||
#ifdef AHD_DEBUG
|
||||
printf("Copied %d bytes of sense data offset %d:", sense_len,
|
||||
SIU_SENSE_OFFSET(siu));
|
||||
for (i = 0; i < sense_len; i++)
|
||||
printf(" 0x%x", ((uint8_t *)&xs->sense.scsi_sense)[i]);
|
||||
printf("\n");
|
||||
|
||||
#endif
|
||||
ahd_set_transaction_status(scb, XS_SENSE);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user