diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2012-09-20 06:06:22 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2012-09-20 06:06:22 +0000 |
commit | 0787d49a4f46e21cd7ca21a8719d5c60be1b259f (patch) | |
tree | 3118ce471319efd67d135ee7b2ff97fcb3e4e2f2 /sys/dev | |
parent | 1030b4ab06a0016e5f2d795e5f008e1e3e539788 (diff) |
make the lines printed during attach more consistent with other drivers
ok mikeb@ sf@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/virtio_pci.c | 12 |
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; |