From 775c953d743b60c4a1492494e69d57ac41476816 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Mon, 26 Nov 2007 17:45:15 +0000 Subject: 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@ --- sys/dev/ic/dc.c | 4 ++-- sys/dev/pci/if_dc_pci.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev') 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); -- cgit v1.2.3