summaryrefslogtreecommitdiff
path: root/sys/dev/ic/siop.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2001-06-24 18:28:11 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2001-06-24 18:28:11 +0000
commit86ba22b4e911beb70534d17e7c118bc501609f90 (patch)
tree03d1a78aceb176d8ac2083f1716e6baa5dd53242 /sys/dev/ic/siop.c
parent6553373982f0705ee875fd16d23cc4dcce27dc2f (diff)
Pass the device's scsi_link to siop_print_info(), instead of the
adapter's siop_softc. This allows easy access to the dv_xname of the device whose negotiation results are being reported. This makes boot probe and subsequent log messages clearer. e.g. message will now read sd0: negotiated tagged 16 bit 20 MHz 16 REQ/ACK offset xfers instead of siop0: target 0 now using tagged 16 bit 20 MHz 16 REQ/ACK offset xfers Clean up siop_print_info() a bit as long as we are there.
Diffstat (limited to 'sys/dev/ic/siop.c')
-rw-r--r--sys/dev/ic/siop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/siop.c b/sys/dev/ic/siop.c
index d3cfe1607cd..b46a9a89169 100644
--- a/sys/dev/ic/siop.c
+++ b/sys/dev/ic/siop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: siop.c,v 1.7 2001/04/23 13:48:42 krw Exp $ */
+/* $OpenBSD: siop.c,v 1.8 2001/06/24 18:28:10 krw Exp $ */
/* $NetBSD: siop.c,v 1.39 2001/02/11 18:04:49 bouyer Exp $ */
/*
@@ -740,7 +740,7 @@ scintr:
if ((siop_target->flags & TARF_SYNC)
== 0) {
siop_target->status = TARST_OK;
- siop_print_info(sc, target);
+ siop_print_info(xs->sc_link);
/* no table to flush here */
CALL_SCRIPT(Ent_msgin_ack);
return 1;
@@ -756,7 +756,7 @@ scintr:
} else if (msg == MSG_EXTENDED &&
extmsg == MSG_EXT_SDTR) {
siop_target->status = TARST_OK;
- siop_print_info(sc, target);
+ siop_print_info(xs->sc_link);
/* no table to flush here */
CALL_SCRIPT(Ent_msgin_ack);
return 1;
@@ -1390,7 +1390,7 @@ siop_scsicmd(xs)
}
else {
sc->targets[target]->status = TARST_OK;
- siop_print_info(sc, target);
+ siop_print_info(xs->sc_link);
}
}
break;