diff options
author | ats <ats@FreeBSD.org> | 1994-11-17 23:22:22 +0000 |
---|---|---|
committer | ats <ats@FreeBSD.org> | 1994-11-17 23:22:22 +0000 |
commit | 5d3ae1d67af624ac9ddcfe57970e5229c6b82abe (patch) | |
tree | cd75ef70b78720bfe3fcf01aaf54a5020abad938 /sys | |
parent | b289af08a9b9db8429e328e71daed677108f6579 (diff) | |
download | FreeBSD-src-5d3ae1d67af624ac9ddcfe57970e5229c6b82abe.zip FreeBSD-src-5d3ae1d67af624ac9ddcfe57970e5229c6b82abe.tar.gz |
Submitted by: Lawrence J. King ljking@ljk.OCUnix.On.Ca
Check the firmware revision for non-printing characters and replace them
question-marks if necessary. Problem is known with old Seagate ST296N
drives.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/scsi/scsiconf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index 77c26a5..bd5776c 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.13 1994/11/12 17:13:23 ats Exp $ + * $Id: scsiconf.c,v 1.14 1994/11/14 23:39:32 ats Exp $ */ #include <sys/types.h> @@ -601,6 +601,7 @@ scsi_probedev(sc_link, maybe_more) char manu[32]; char model[32]; char version[32]; + int z; bzero(&inqbuf, sizeof(inqbuf)); /* @@ -736,6 +737,9 @@ scsi_probedev(sc_link, maybe_more) strncpy(manu, inqbuf.vendor, 8); strncpy(model, inqbuf.product, 16); strncpy(version, inqbuf.revision, 4); + for(z = 0; z < 4; z++) { + if (version[z]<' ') version[z]='?'; + } } else /* * If not advanced enough, use default values |