Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic No need to print out sense data just because it h...



details:   https://anonhg.NetBSD.org/src/rev/3a50c615ae5e
branches:  trunk
changeset: 570328:3a50c615ae5e
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Mon Oct 04 11:08:47 2004 +0000

description:
No need to print out sense data just because it happened to arrive in
a pkt. Wrap that in AHD_DEBUG.

diffstat:

 sys/dev/ic/aic79xx_osm.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (44 lines):

diff -r 885d7979c1b2 -r 3a50c615ae5e sys/dev/ic/aic79xx_osm.c
--- a/sys/dev/ic/aic79xx_osm.c  Mon Oct 04 10:56:12 2004 +0000
+++ b/sys/dev/ic/aic79xx_osm.c  Mon Oct 04 11:08:47 2004 +0000
@@ -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 @@
         } 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 @@
                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);
        }
 



Home | Main Index | Thread Index | Old Index