diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-01-07 11:03:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-01-07 11:03:34 +0000 |
commit | 4e5edf1681a086658e36c0c381226ba0a9868ef7 (patch) | |
tree | 098270bb47f887cef2343726615bd31a5952d17a /sys/dev/pci/if_fxp.c | |
parent | 63e8c62ef47731e477613e0f788457a4a289dceb (diff) |
now this is really pretty
Diffstat (limited to 'sys/dev/pci/if_fxp.c')
-rw-r--r-- | sys/dev/pci/if_fxp.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/sys/dev/pci/if_fxp.c b/sys/dev/pci/if_fxp.c index 072b27b8749..d30642e598a 100644 --- a/sys/dev/pci/if_fxp.c +++ b/sys/dev/pci/if_fxp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_fxp.c,v 1.8 1998/01/05 13:35:20 deraadt Exp $ */ +/* $OpenBSD: if_fxp.c,v 1.9 1998/01/07 11:03:29 deraadt Exp $ */ /* $NetBSD: if_fxp.c,v 1.2 1997/06/05 02:01:55 thorpej Exp $ */ /* @@ -323,8 +323,6 @@ fxp_attach(parent, self, aux) bus_size_t iosize; #endif - printf("\n"); - #ifndef __OpenBSD__ /* * Map control/status registers. @@ -347,14 +345,16 @@ fxp_attach(parent, self, aux) sc->sc_st = iot; #endif + /* * Allocate our interrupt. */ if (pci_intr_map(pc, pa->pa_intrtag, pa->pa_intrpin, pa->pa_intrline, &ih)) { - printf("%s: couldn't map interrupt\n", sc->sc_dev.dv_xname); + printf(": couldn't map interrupt\n"); return; } + intrstr = pci_intr_string(pc, ih); #ifdef __OpenBSD__ sc->sc_ih = pci_intr_establish(pc, ih, IPL_NET, fxp_intr, sc, @@ -363,14 +363,13 @@ fxp_attach(parent, self, aux) sc->sc_ih = pci_intr_establish(pc, ih, IPL_NET, fxp_intr, sc); #endif if (sc->sc_ih == NULL) { - printf("%s: couldn't establish interrupt", - sc->sc_dev.dv_xname); + printf(": couldn't establish interrupt"); if (intrstr != NULL) printf(" at %s", intrstr); printf("\n"); return; } - printf("%s: interrupting at %s\n", sc->sc_dev.dv_xname, intrstr); + printf(": %s\n", intrstr); /* Do generic parts of attach. */ if (fxp_attach_common(sc, enaddr)) { @@ -378,8 +377,8 @@ fxp_attach(parent, self, aux) return; } - printf("%s: Ethernet address %s%s\n", sc->sc_dev.dv_xname, - ether_sprintf(enaddr), sc->phy_10Mbps_only ? ", 10Mbps" : ""); + printf(": Ethernet address %s%s, %s\n", ether_sprintf(enaddr), + sc->phy_10Mbps_only ? ", 10Mbps" : "", intrstr); #ifdef __OpenBSD__ ifp = &sc->arpcom.ac_if; |