diff options
author | ache <ache@FreeBSD.org> | 1994-12-21 15:12:41 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-12-21 15:12:41 +0000 |
commit | abcaf74abf6a160384431c1abf5a76fd7d2adb1f (patch) | |
tree | c6087575ebdefaf408d48af14a4537a66bbbbc94 | |
parent | bf3a1964a989fe3228f4391142660e1c88e2fbe7 (diff) | |
download | FreeBSD-src-abcaf74abf6a160384431c1abf5a76fd7d2adb1f.zip FreeBSD-src-abcaf74abf6a160384431c1abf5a76fd7d2adb1f.tar.gz |
stbytes miss by one for new model
-rw-r--r-- | sys/dev/mcd/mcd.c | 8 | ||||
-rw-r--r-- | sys/i386/isa/mcd.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c index 93552c5..0c1705d 100644 --- a/sys/dev/mcd/mcd.c +++ b/sys/dev/mcd/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); 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); |