summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-12-08 14:44:58 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-12-08 14:44:58 +0000
commitf9e09266acc0bb50bf1b2a854df347ea77d61aa0 (patch)
treeb81b23225f19ad864cd3dca78bbdfcef729d5c8c
parent526e56285be31c0272e3af7b71dd76c0607d9daf (diff)
Fix attach message printing for CY82C693U to be like pciide_print_channels().
It is done inline for the CY82C693U since it only has one channel.
-rw-r--r--sys/dev/pci/pciide.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c
index 9f5834d533c..3e713dcf53d 100644
--- a/sys/dev/pci/pciide.c
+++ b/sys/dev/pci/pciide.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pciide.c,v 1.38 2000/12/06 22:45:41 deraadt Exp $ */
+/* $OpenBSD: pciide.c,v 1.39 2000/12/08 14:44:57 millert Exp $ */
/* $NetBSD: pciide.c,v 1.48 1999/11/28 20:05:18 bouyer Exp $ */
/*
@@ -2459,20 +2459,18 @@ cy693_chip_map(sc, pa)
printf(": cannot allocate memory for command queue\n");
return;
}
- printf("%s: primary channel %s to ",
- sc->sc_wdcdev.sc_dev.dv_xname,
+ printf(", %s %s to ", PCIIDE_CHANNEL_NAME(0),
(interface & PCIIDE_INTERFACE_SETTABLE(0)) ?
"configured" : "wired");
if (interface & PCIIDE_INTERFACE_PCI(0)) {
- printf("native-PCI");
+ printf("native-PCI\n");
cp->hw_ok = pciide_mapregs_native(pa, cp, &cmdsize, &ctlsize,
pciide_pci_intr);
} else {
- printf("compatibility");
+ printf("compatibility\n");
cp->hw_ok = pciide_mapregs_compat(pa, cp, sc->sc_cy_compatchan,
&cmdsize, &ctlsize);
}
- printf(" mode\n");
cp->wdc_channel.data32iot = cp->wdc_channel.cmd_iot;
cp->wdc_channel.data32ioh = cp->wdc_channel.cmd_ioh;