summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-07-11 05:47:36 +0000
committerderaadt <deraadt@openbsd.org>1998-07-11 05:47:36 +0000
commit2fad49f249da169485d9ebd3724b832c99d48950 (patch)
tree8c4d02cfc6656ef747e2607e81d88113acaf1207
parentbe* at qec? (diff)
downloadwireguard-openbsd-2fad49f249da169485d9ebd3724b832c99d48950.tar.xz
wireguard-openbsd-2fad49f249da169485d9ebd3724b832c99d48950.zip
fix attach() messages
-rw-r--r--sys/arch/sparc/dev/be.c14
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
}
/*