Fix redundant device name and/or target printing after calling
authormiod <miod@openbsd.org>
Sun, 31 Aug 2008 17:21:57 +0000 (17:21 +0000)
committermiod <miod@openbsd.org>
Sun, 31 Aug 2008 17:21:57 +0000 (17:21 +0000)
sc_print_addr(); ok krw@

sys/dev/ic/ncr53c9x.c
sys/dev/ic/siop.c
sys/dev/ic/siop_common.c
sys/dev/ic/trm.c

index e8aa8b6..8f29654 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: ncr53c9x.c,v 1.37 2008/05/27 09:43:26 kettenis Exp $  */
+/*     $OpenBSD: ncr53c9x.c,v 1.38 2008/08/31 17:21:57 miod Exp $      */
 /*     $NetBSD: ncr53c9x.c,v 1.56 2000/11/30 14:41:46 thorpej Exp $    */
 
 /*
@@ -2779,10 +2779,9 @@ ncr53c9x_timeout(arg)
        int s;
 
        sc_print_addr(sc_link);
-       printf("%s: timed out [ecb %p (flags 0x%x, dleft %x, stat %x)], "
+       printf("timed out [ecb %p (flags 0x%x, dleft %x, stat %x)], "
               "<state %d, nexus %p, phase(l %x, c %x, p %x), resid %lx, "
               "msg(q %x,o %x) %s>",
-               sc->sc_dev.dv_xname,
                ecb, ecb->flags, ecb->dleft, ecb->stat,
                sc->sc_state, sc->sc_nexus,
                NCR_READ_REG(sc, NCR_STAT),
index 55f271b..887de4f 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: siop.c,v 1.49 2007/09/07 17:41:09 krw Exp $ */
+/*     $OpenBSD: siop.c,v 1.50 2008/08/31 17:21:57 miod Exp $ */
 /*     $NetBSD: siop.c,v 1.79 2005/11/18 23:10:32 bouyer Exp $ */
 
 /*
@@ -508,7 +508,7 @@ siop_intr(v)
                        if (siop_cmd)
                                sc_print_addr(xs->sc_link);
                        else
-                               printf("%s:", sc->sc_c.sc_dev.dv_xname);
+                               printf("%s: ", sc->sc_c.sc_dev.dv_xname);
                        printf("scsi gross error\n");
                        goto reset;
                }
@@ -574,7 +574,7 @@ siop_intr(v)
                        if (siop_cmd)
                                sc_print_addr(xs->sc_link);
                        else
-                               printf("%s:", sc->sc_c.sc_dev.dv_xname);
+                               printf("%s: ", sc->sc_c.sc_dev.dv_xname);
                        printf("parity error\n");
                        goto reset;
                }
index dfc99fc..093da43 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: siop_common.c,v 1.30 2007/08/05 19:05:09 kettenis Exp $ */
+/*     $OpenBSD: siop_common.c,v 1.31 2008/08/31 17:21:57 miod Exp $ */
 /*     $NetBSD: siop_common.c,v 1.37 2005/02/27 00:27:02 perry Exp $   */
 
 /*
@@ -805,7 +805,7 @@ siop_sdp(siop_cmd, offset)
 #ifdef DIAGNOSTIC
        if (offset > SIOP_NSG) {
                sc_print_addr(siop_cmd->xs->sc_link);
-               printf("offset %d > %d\n", offset, SIOP_NSG);
+               printf("offset %d > %d\n", offset, SIOP_NSG);
                panic("siop_sdp: offset");
        }
 #endif
index 8e1f73e..3e30f09 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: trm.c,v 1.8 2007/09/07 17:41:09 krw Exp $
+/*     $OpenBSD: trm.c,v 1.9 2008/08/31 17:21:57 miod Exp $
  * ------------------------------------------------------------
  *   O.S       : OpenBSD
  *   File Name : trm.c
@@ -653,9 +653,8 @@ trm_timeout(void *arg1)
        if (xs != NULL) {
                sc = xs->sc_link->adapter_softc;
                sc_print_addr(xs->sc_link);
-               printf("%s: SCSI OpCode 0x%02x for target %d lun %d timed out\n",
-                   sc->sc_device.dv_xname, xs->cmd->opcode,
-                   xs->sc_link->target, xs->sc_link->lun);
+               printf("SCSI OpCode 0x%02x timed out\n",
+                   sc->sc_device.dv_xname, xs->cmd->opcode);
                pSRB->SRBFlag |= TRM_SCSI_TIMED_OUT;
                trm_FinishSRB(sc, pSRB);
                trm_StartWaitingSRB(sc);