From 2a75924777dc6abad15f8f40a34cb2e4cc793dda Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Thu, 27 Feb 2003 16:31:10 +0000 Subject: print out the ethernet address in the dmesg. from David Krause --- sys/dev/pci/if_em.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci') diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c index 1a7788a55d0..8388dea6dcf 100644 --- a/sys/dev/pci/if_em.c +++ b/sys/dev/pci/if_em.c @@ -328,6 +328,8 @@ em_attach(struct device *parent, struct device *self, void *aux) memcpy((char *)&sc->arpcom.ac_enaddr, sc->hw.mac_addr, ETH_LENGTH_OF_ADDRESS); + printf(", address: %s\n", ether_sprintf(sc->arpcom.ac_enaddr)); + /* Setup OS specific network interface */ em_setup_interface(sc); @@ -1305,7 +1307,7 @@ em_allocate_pci_resources(struct em_softc * sc) printf("\n"); return (ENXIO); } - printf(": %s\n", intrstr); + printf(": %s", intrstr); sc->hw.back = &sc->osdep; -- cgit v1.2.3