summaryrefslogtreecommitdiffstats
path: root/sys/scsi/scsiconf.c
diff options
context:
space:
mode:
authorats <ats@FreeBSD.org>1994-11-14 23:39:33 +0000
committerats <ats@FreeBSD.org>1994-11-14 23:39:33 +0000
commitd21ec166f35f73e5ad66ea84f19927d2d4100eda (patch)
treedaa391ea6a0b83a7e79f36bb3371bdfc3fe9cb94 /sys/scsi/scsiconf.c
parent1900b3c4de90ee24523095f3c707eecf44d8a9a1 (diff)
downloadFreeBSD-src-d21ec166f35f73e5ad66ea84f19927d2d4100eda.zip
FreeBSD-src-d21ec166f35f73e5ad66ea84f19927d2d4100eda.tar.gz
scsiconf.h:
Change the sc_link structure from 8 targets with 8 lun's to 16 targets with 8 lun's. Wide scsi and the ncr 825 does support 16 targets. scsiconf.c: move the addition of the trailing NUL's out of a then clause, they are also needed in the else clause for an unknown device.
Diffstat (limited to 'sys/scsi/scsiconf.c')
-rw-r--r--sys/scsi/scsiconf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c
index 7a723ec..77c26a5 100644
--- a/sys/scsi/scsiconf.c
+++ b/sys/scsi/scsiconf.c
@@ -14,7 +14,7 @@
*
* Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
*
- * $Id: scsiconf.c,v 1.12 1994/10/23 21:27:55 wollman Exp $
+ * $Id: scsiconf.c,v 1.13 1994/11/12 17:13:23 ats Exp $
*/
#include <sys/types.h>
@@ -734,11 +734,8 @@ scsi_probedev(sc_link, maybe_more)
desc = inqbuf.vendor;
desc[len - (desc - (char *) &inqbuf)] = 0;
strncpy(manu, inqbuf.vendor, 8);
- manu[8] = 0;
strncpy(model, inqbuf.product, 16);
- model[16] = 0;
strncpy(version, inqbuf.revision, 4);
- version[4] = 0;
} else
/*
* If not advanced enough, use default values
@@ -749,6 +746,9 @@ scsi_probedev(sc_link, maybe_more)
strncpy(model, "unknown", 16);
strncpy(version, "????", 4);
}
+ manu[8] = 0;
+ model[16] = 0;
+ version[4] = 0;
printf("%s%d targ %d lun %d: type %ld(%s) %s SCSI%d\n"
,scsi_adapter->name
,unit
OpenPOWER on IntegriCloud