Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sys/dev/ic Pull up revision 1.71 (via patch, requested ...
details: https://anonhg.NetBSD.org/src/rev/ff4d971d3f3a
branches: netbsd-1-4
changeset: 470253:ff4d971d3f3a
user: he <he%NetBSD.org@localhost>
date: Tue Feb 01 23:30:28 2000 +0000
description:
Pull up revision 1.71 (via patch, requested by bouyer):
Correct a minor bug in Ultra-DMA mode printing.
diffstat:
sys/dev/ic/wdc.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 51de1a0f1b0c -r ff4d971d3f3a sys/dev/ic/wdc.c
--- a/sys/dev/ic/wdc.c Tue Feb 01 23:16:40 2000 +0000
+++ b/sys/dev/ic/wdc.c Tue Feb 01 23:30:28 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wdc.c,v 1.66.2.7 2000/01/23 12:30:20 he Exp $ */
+/* $NetBSD: wdc.c,v 1.66.2.8 2000/02/01 23:30:28 he Exp $ */
/*
@@ -903,6 +903,7 @@
break;
}
if (params.atap_extensions & WDC_EXT_UDMA_MODES) {
+ printed = 0;
for (i = 7; i >= 0; i--) {
if ((params.atap_udmamode_supp & (1 << i))
== 0)
@@ -912,8 +913,11 @@
if (ata_set_mode(drvp, 0x40 | i,
AT_POLL) != CMD_OK)
continue;
- printf("%s Ultra-DMA mode %d", sep, i);
- sep = ",";
+ if (!printed) {
+ printf("%s Ultra-DMA mode %d", sep, i);
+ sep = ",";
+ printed = 1;
+ }
if (wdc->cap & WDC_CAPABILITY_UDMA) {
if ((wdc->cap & WDC_CAPABILITY_MODE) &&
wdc->UDMA_cap < i)
Home |
Main Index |
Thread Index |
Old Index