summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/mcd.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-12-21 15:12:41 +0000
committerache <ache@FreeBSD.org>1994-12-21 15:12:41 +0000
commitabcaf74abf6a160384431c1abf5a76fd7d2adb1f (patch)
treec6087575ebdefaf408d48af14a4537a66bbbbc94 /sys/i386/isa/mcd.c
parentbf3a1964a989fe3228f4391142660e1c88e2fbe7 (diff)
downloadFreeBSD-src-abcaf74abf6a160384431c1abf5a76fd7d2adb1f.zip
FreeBSD-src-abcaf74abf6a160384431c1abf5a76fd7d2adb1f.tar.gz
stbytes miss by one for new model
Diffstat (limited to 'sys/i386/isa/mcd.c')
-rw-r--r--sys/i386/isa/mcd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/isa/mcd.c b/sys/i386/isa/mcd.c
index 93552c5..0c1705d 100644
--- a/sys/i386/isa/mcd.c
+++ b/sys/i386/isa/mcd.c
@@ -40,7 +40,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: mcd.c,v 1.31 1994/11/14 19:25:43 ache Exp $
+ * $Id: mcd.c,v 1.32 1994/11/14 19:32:11 ache Exp $
*/
static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore";
@@ -679,9 +679,9 @@ mcd_probe(struct isa_device *dev)
return 0;
stbytes[j] = (inb(port+MCD_DATA) & 0xFF);
}
- printf("mcd%d: version information is %x %c %x\n", unit,
- stbytes[0], stbytes[1], stbytes[2]);
- if (stbytes[1] >= 4) {
+ printf("mcd%d: version information is %c %x\n", unit,
+ stbytes[1], stbytes[2]);
+ if (stbytes[2] >= 4) {
outb(port+MCD_CTRL, M_PICKLE);
mcd_data[unit].flags |= MCDNEWMODEL;
printf("mcd%d: Adjusted for newer drive model\n", unit);
OpenPOWER on IntegriCloud