summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-12 20:57:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-12 20:57:33 +0000
commit357289b9174d90475ff50e0bc729b310d560fdb9 (patch)
tree59d954c26e207c03a7ffd5da07cde2ae7520f32f
parent97638040c1678a407660402a47b1e41b2e24a94d (diff)
rearrange config-time printfs
-rw-r--r--sys/dev/ic/fxp.c33
1 files changed, 17 insertions, 16 deletions
diff --git a/sys/dev/ic/fxp.c b/sys/dev/ic/fxp.c
index 570b14deee7..4e359de6833 100644
--- a/sys/dev/ic/fxp.c
+++ b/sys/dev/ic/fxp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fxp.c,v 1.54 2004/06/27 02:38:37 brad Exp $ */
+/* $OpenBSD: fxp.c,v 1.55 2004/07/12 20:57:32 deraadt Exp $ */
/* $NetBSD: if_fxp.c,v 1.2 1997/06/05 02:01:55 thorpej Exp $ */
/*
@@ -446,16 +446,28 @@ fxp_attach_common(sc, intrstr)
ifp->if_watchdog = fxp_watchdog;
IFQ_SET_READY(&ifp->if_snd);
-
+#if NVLAN > 0
+ /*
+ * Only 82558 and newer cards have a bit to ignore oversized frames.
+ */
+ if (sc->not_82557)
+ ifp->if_capabilities |= IFCAP_VLAN_MTU;
+#endif
+
+ printf(": %s, address %s\n", intrstr,
+ ether_sprintf(sc->sc_arpcom.ac_enaddr));
+
if (sc->sc_flags & FXPF_DISABLE_STANDBY) {
fxp_read_eeprom(sc, &data, 10, 1);
if (data & 0x02) { /* STB enable */
u_int16_t cksum;
int i;
- printf("Disabling dynamic standby mode in EEPROM\n");
+
+ printf("%s: Disabling dynamic standby mode in EEPROM",
+ sc->sc_dev.dv_xname);
data &= ~0x02;
fxp_write_eeprom(sc, &data, 10, 1);
- printf("New EEPROM ID: 0x%x\n", data);
+ printf(", New ID 0x%x", data);
cksum = 0;
for (i = 0; i < (1 << sc->eeprom_size) - 1; i++) {
fxp_read_eeprom(sc, &data, i, 1);
@@ -465,22 +477,11 @@ fxp_attach_common(sc, intrstr)
cksum = 0xBABA - cksum;
fxp_read_eeprom(sc, &data, i, 1);
fxp_write_eeprom(sc, &cksum, i, 1);
- printf("EEPROM checksum @ 0x%x: 0x%x -> 0x%x\n",
+ printf(", cksum @ 0x%x: 0x%x -> 0x%x\n",
i, data, cksum);
}
}
-#if NVLAN > 0
- /*
- * Only 82558 and newer cards have a bit to ignore oversized frames.
- */
- if (sc->not_82557)
- ifp->if_capabilities |= IFCAP_VLAN_MTU;
-#endif
-
- printf(": %s, address %s\n", intrstr,
- ether_sprintf(sc->sc_arpcom.ac_enaddr));
-
/*
* Initialize our media structures and probe the MII.
*/