summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-09-09 00:05:22 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-09-09 00:05:22 +0000
commit703196a4d8f2319ffb3191be1dc80fa2ba356c79 (patch)
treed12eafda22ea6be4e9c53f0d112a2a0c43f49c72
parenta4ab388f79fc95f6539382f702d1e1ea52f8f06d (diff)
Correctly printf on attach.
-rw-r--r--sys/dev/ic/cy.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/ic/cy.c b/sys/dev/ic/cy.c
index 9cde74d4246..7adce063d89 100644
--- a/sys/dev/ic/cy.c
+++ b/sys/dev/ic/cy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cy.c,v 1.17 2002/03/14 01:26:54 millert Exp $ */
+/* $OpenBSD: cy.c,v 1.18 2002/09/09 00:05:21 art Exp $ */
/*
* cy.c
@@ -257,9 +257,7 @@ cy_attach(parent, self, aux)
} /* for(each CD1400 on a card... ) */
-#if CY_DEBUG
- printf("cy: %d ports\n", port);
-#endif
+ printf(": %d ports\n", port);
/* ensure an edge for the next interrupt */
bus_space_write_1(sc->sc_memt, sc->sc_memh,
@@ -314,8 +312,9 @@ cyopen(dev, flag, mode, p)
#endif
if (card >= cy_cd.cd_ndevs ||
- (sc = cy_cd.cd_devs[card]) == NULL)
+ (sc = cy_cd.cd_devs[card]) == NULL) {
return (ENXIO);
+ }
cy = &sc->sc_ports[port];