diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-11 05:47:37 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-11 05:47:37 +0000 |
commit | 469c85d946ba83c48da41498ef9f6d3dbdf3b6a3 (patch) | |
tree | 4140f6b427598121ee018cabe9b547b65b4b0428 /sys/arch/sparc/dev/be.c | |
parent | 17e8897032e0e1b698cfb2d29a77ecf27131ae18 (diff) |
fix attach() messages
Diffstat (limited to 'sys/arch/sparc/dev/be.c')
-rw-r--r-- | sys/arch/sparc/dev/be.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/sparc/dev/be.c b/sys/arch/sparc/dev/be.c index 695041e0c60..b2cafbfafb7 100644 --- a/sys/arch/sparc/dev/be.c +++ b/sys/arch/sparc/dev/be.c @@ -1,4 +1,4 @@ -/* $OpenBSD: be.c,v 1.4 1998/07/05 09:25:53 deraadt Exp $ */ +/* $OpenBSD: be.c,v 1.5 1998/07/11 05:47:36 deraadt Exp $ */ /* * Copyright (c) 1998 Theo de Raadt. All rights reserved. @@ -115,19 +115,15 @@ beattach(parent, self, aux) struct besoftc *sc = (struct besoftc *)self; struct ifnet *ifp = &sc->sc_arpcom.ac_if; struct confargs *ca = aux; - int pri; - - /* XXX the following declarations should be elsewhere */ extern void myetheraddr __P((u_char *)); + int pri; if (ca->ca_ra.ra_nintr != 1) { printf(": expected 1 interrupt, got %d\n", ca->ca_ra.ra_nintr); return; } pri = ca->ca_ra.ra_intr[0].int_pri; - printf(" pri %d", pri); sc->sc_rev = getpropint(ca->ca_ra.ra_node, "board-version", -1); - printf(": rev %x", sc->sc_rev); sc->sc_cr = mapiodev(ca->ca_ra.ra_reg, 0, sizeof(struct be_cregs)); sc->sc_br = mapiodev(&ca->ca_ra.ra_reg[1], 0, sizeof(struct be_bregs)); @@ -164,9 +160,13 @@ beattach(parent, self, aux) if_attach(ifp); ether_ifattach(ifp); + printf(" pri %d: rev %x address %s\n", pri, sc->sc_rev, + ether_sprintf(sc->sc_arpcom.ac_enaddr)); + +#if NBPFILTER > 0 bpfattach(&sc->sc_arpcom.ac_if.if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header)); - printf("\n"); +#endif } /* |