-/* $OpenBSD: iop_pci.c,v 1.7 2010/04/08 00:23:53 tedu Exp $ */
+/* $OpenBSD: iop_pci.c,v 1.8 2010/07/13 13:07:35 kettenis Exp $ */
/* $NetBSD: iop_pci.c,v 1.4 2001/03/20 13:21:00 ad Exp $ */
/*-
sc = (struct iop_softc *)self;
pa = (struct pci_attach_args *)aux;
pc = pa->pa_pc;
- printf(": ");
/*
* The kernel always uses the first memory mapping to communicate
break;
}
if (i == PCI_MAPREG_END) {
- printf("can't find mapping\n");
+ printf(": can't find mapping\n");
return;
}
/* Map the register window. */
if (pci_mapreg_map(pa, i, PCI_MAPREG_TYPE_MEM, 0, &sc->sc_iot,
&sc->sc_ioh, NULL, NULL, 0x40000)) {
- printf("%s: can't map register window\n", sc->sc_dv.dv_xname);
+ printf(": can't map register window\n");
return;
}
/* Map and establish the interrupt. XXX IPL_BIO. */
if (pci_intr_map(pa, &ih)) {
- printf("can't map interrupt\n");
+ printf(": can't map interrupt\n");
return;
}
intrstr = pci_intr_string(pc, ih);
sc->sc_ih = pci_intr_establish(pc, ih, IPL_BIO, iop_intr, sc,
sc->sc_dv.dv_xname);
if (sc->sc_ih == NULL) {
- printf("can't establish interrupt");
+ printf(": can't establish interrupt");
if (intrstr != NULL)
printf(" at %s", intrstr);
printf("\n");