From 2a8d0d19aee86a9e5ed0f8cb81a6bda419250843 Mon Sep 17 00:00:00 2001 From: dufault Date: Sun, 5 Mar 1995 20:01:44 +0000 Subject: Fix when SCSI_DEBUG turned on. Thanks to Michael Reifenberger. --- sys/scsi/scsi_driver.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'sys/scsi/scsi_driver.c') diff --git a/sys/scsi/scsi_driver.c b/sys/scsi/scsi_driver.c index 56c1acd..1ecf525 100644 --- a/sys/scsi/scsi_driver.c +++ b/sys/scsi/scsi_driver.c @@ -35,7 +35,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scsi_driver.c,v 1.2 1995/03/03 21:38:43 dufault Exp $ + * $Id: scsi_driver.c,v 1.3 1995/03/04 20:50:51 dufault Exp $ * */ #include @@ -119,8 +119,8 @@ struct scsi_device *device) sc_link->flags |= SDEV_OPEN; } - SC_DEBUG(sc_link, SDEV_DB1, ("%sopen: dev=0x%x (unit %d of %d) result %d\n", - device->name, dev, unit, device->size, errcode)); + SC_DEBUG(sc_link, SDEV_DB1, ("%sopen: dev=0x%x (unit %d) result %d\n", + device->name, dev, unit, errcode)); return errcode; } @@ -171,7 +171,8 @@ scsi_minphys(struct buf *bp, struct scsi_device *device) void scsi_strategy(struct buf *bp, struct scsi_device *device) { - struct scsi_link *sc_link = SCSI_LINK(device, GETUNIT(device, bp->b_dev)); + u_int32 unit = GETUNIT(device, bp->b_dev); + struct scsi_link *sc_link = SCSI_LINK(device, unit); SC_DEBUG(sc_link, SDEV_DB2, ("\n%sstrategy ", device->name)); SC_DEBUG(sc_link, SDEV_DB1, ("%s%ld: %d bytes @ blk%d\n", -- cgit v1.1