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_en_pci.c | |
parent | 63e8c62ef47731e477613e0f788457a4a289dceb (diff) |
now this is really pretty
Diffstat (limited to 'sys/dev/pci/if_en_pci.c')
-rw-r--r-- | sys/dev/pci/if_en_pci.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/dev/pci/if_en_pci.c b/sys/dev/pci/if_en_pci.c index 9f3cf17786e..6a7cc8c9e18 100644 --- a/sys/dev/pci/if_en_pci.c +++ b/sys/dev/pci/if_en_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_en_pci.c,v 1.5 1997/05/07 00:17:40 niklas Exp $ */ +/* $OpenBSD: if_en_pci.c,v 1.6 1998/01/07 11:03:27 deraadt Exp $ */ /* * @@ -204,8 +204,6 @@ void *aux; const char *intrstr; int retval; - printf("\n"); - sc->en_memt = pa->pa_memt; sc->is_adaptec = (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_ADP) ? 1 : 0; scp->en_pc = pa->pa_pc; @@ -216,20 +214,19 @@ void *aux; if (pci_intr_map(scp->en_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(scp->en_pc, ih); scp->sc_ih = pci_intr_establish(scp->en_pc, ih, IPL_NET, en_intr, sc, sc->sc_dev.dv_xname); if (scp->sc_ih == NULL) { - printf("%s: couldn't establish interrupt\n", sc->sc_dev.dv_xname); + printf(": couldn't establish interrupt\n"); if (intrstr != NULL) printf(" at %s", intrstr); printf("\n"); return; } - printf("%s: interrupting at %s\n", sc->sc_dev.dv_xname, intrstr); sc->ipl = 1; /* XXX */ /* @@ -243,10 +240,12 @@ void *aux; &sc->en_base); if (retval) { - printf("%s: couldn't map memory\n", sc->sc_dev.dv_xname); + printf(": couldn't map memory\n"); return; } + printf(": %s\n", intrstr); + /* * set up pci bridge */ |