summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2007-11-26 17:45:15 +0000
committerBrad Smith <brad@cvs.openbsd.org>2007-11-26 17:45:15 +0000
commit775c953d743b60c4a1492494e69d57ac41476816 (patch)
treeb02c56ea6fe3087a5a955c2924925f1e1b1536a0 /sys/dev
parent5a7b42ca40bed7bd36cf414cd5fc1d44d794b67f (diff)
print the comma before the MAC address string in dc_attach() instead of the
PCI front end attach function. This corrects the dmesg output for CardBus adapters and ensures proper dmesg output if an error occurs in dc_attach(). ok dlg@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/dc.c4
-rw-r--r--sys/dev/pci/if_dc_pci.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/dc.c b/sys/dev/ic/dc.c
index a297da047ce..7686db16fce 100644
--- a/sys/dev/ic/dc.c
+++ b/sys/dev/ic/dc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dc.c,v 1.98 2007/10/01 04:03:51 krw Exp $ */
+/* $OpenBSD: dc.c,v 1.99 2007/11/26 17:45:14 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -1759,7 +1759,7 @@ hasmac:
/*
* A 21143 or clone chip was detected. Inform the world.
*/
- printf(" address %s\n", ether_sprintf(sc->sc_arpcom.ac_enaddr));
+ printf(", address %s\n", ether_sprintf(sc->sc_arpcom.ac_enaddr));
ifp = &sc->sc_arpcom.ac_if;
ifp->if_softc = sc;
diff --git a/sys/dev/pci/if_dc_pci.c b/sys/dev/pci/if_dc_pci.c
index 8c574051141..e5369a994b5 100644
--- a/sys/dev/pci/if_dc_pci.c
+++ b/sys/dev/pci/if_dc_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_dc_pci.c,v 1.58 2007/08/01 16:30:03 miod Exp $ */
+/* $OpenBSD: if_dc_pci.c,v 1.59 2007/11/26 17:45:14 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -256,7 +256,7 @@ void dc_pci_attach(parent, self, aux)
printf("\n");
goto fail_1;
}
- printf(": %s,", intrstr);
+ printf(": %s", intrstr);
/* Need this info to decide on a chip type. */
sc->dc_revision = revision = PCI_REVISION(pa->pa_class);