summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2012-09-20 06:06:21 +0000
committerjasper <jasper@openbsd.org>2012-09-20 06:06:21 +0000
commitff92a3901fc8211b03577b783835af070b74113f (patch)
tree86d5bebb3343f13ebd02bf17c0a9a33e24628565
parentSet up PCI bus number resource accounting for the main PCI bus hierarchy. (diff)
downloadwireguard-openbsd-ff92a3901fc8211b03577b783835af070b74113f.tar.xz
wireguard-openbsd-ff92a3901fc8211b03577b783835af070b74113f.zip
make the lines printed during attach more consistent with other drivers
ok mikeb@ sf@
-rw-r--r--sys/dev/pci/virtio_pci.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pci/virtio_pci.c b/sys/dev/pci/virtio_pci.c
index fdfb27e76f8..9916765b8f2 100644
--- a/sys/dev/pci/virtio_pci.c
+++ b/sys/dev/pci/virtio_pci.c
@@ -188,7 +188,7 @@ virtio_pci_attach(struct device *parent, struct device *self, void *aux)
if (pci_mapreg_map(pa, PCI_MAPREG_START, PCI_MAPREG_TYPE_IO, 0,
&sc->sc_iot, &sc->sc_ioh, NULL, &sc->sc_iosize, 0)) {
- printf("can't map i/o space\n");
+ printf("%s: can't map i/o space\n", vsc->sc_dev.dv_xname);
return;
}
@@ -201,28 +201,28 @@ virtio_pci_attach(struct device *parent, struct device *self, void *aux)
vsc->sc_child = NULL;
config_found(self, sc, NULL);
if (vsc->sc_child == NULL) {
- printf("no matching child driver; not configured\n");
+ printf("%s: no matching child driver; not configured\n", vsc->sc_dev.dv_xname);
goto fail_1;
}
if (vsc->sc_child == VIRTIO_CHILD_ERROR) {
- printf("virtio configuration failed\n");
+ printf("%s: virtio configuration failed\n", vsc->sc_dev.dv_xname);
goto fail_1;
}
if (pci_intr_map(pa, &ih)) {
- printf("couldn't map interrupt\n");
+ printf("%s: couldn't map interrupt\n", vsc->sc_dev.dv_xname);
goto fail_2;
}
intrstr = pci_intr_string(pc, ih);
vsc->sc_ih = pci_intr_establish(pc, ih, vsc->sc_ipl, virtio_pci_intr, sc, vsc->sc_dev.dv_xname);
if (vsc->sc_ih == NULL) {
- printf("couldn't establish interrupt");
+ printf("%s: couldn't establish interrupt", vsc->sc_dev.dv_xname);
if (intrstr != NULL)
printf(" at %s", intrstr);
printf("\n");
goto fail_2;
}
- printf("%s: interrupting at %s\n", vsc->sc_dev.dv_xname, intrstr);
+ printf("%s: %s\n", vsc->sc_dev.dv_xname, intrstr);
virtio_set_status(vsc, VIRTIO_CONFIG_DEVICE_STATUS_DRIVER_OK);
return;