summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_vr.c
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2009-03-29 21:53:52 +0000
committersthen <sthen@openbsd.org>2009-03-29 21:53:52 +0000
commite10c952f7e94bfde9fcd30d5b1abf17668c63aad (patch)
treede7626cb1afd57d0e8808c8c6cef7adb3976dd0a /sys/dev/pci/if_vr.c
parentMake sure systat mbufs prints the interface name even if an interface only (diff)
downloadwireguard-openbsd-e10c952f7e94bfde9fcd30d5b1abf17668c63aad.tar.xz
wireguard-openbsd-e10c952f7e94bfde9fcd30d5b1abf17668c63aad.zip
make various strings ("can't map mem space" and similar) more consistent
between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
Diffstat (limited to 'sys/dev/pci/if_vr.c')
-rw-r--r--sys/dev/pci/if_vr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c
index 9e64f710c78..e8a285961cc 100644
--- a/sys/dev/pci/if_vr.c
+++ b/sys/dev/pci/if_vr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vr.c,v 1.80 2008/11/28 02:44:18 brad Exp $ */
+/* $OpenBSD: if_vr.c,v 1.81 2009/03/29 21:53:52 sthen Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -482,27 +482,27 @@ vr_attach(struct device *parent, struct device *self, void *aux)
#ifdef VR_USEIOSPACE
if (pci_mapreg_map(pa, VR_PCI_LOIO, PCI_MAPREG_TYPE_IO, 0,
&sc->vr_btag, &sc->vr_bhandle, NULL, &size, 0)) {
- printf(": failed to map i/o space\n");
+ printf(": can't map i/o space\n");
return;
}
#else
if (pci_mapreg_map(pa, VR_PCI_LOMEM, PCI_MAPREG_TYPE_MEM, 0,
&sc->vr_btag, &sc->vr_bhandle, NULL, &size, 0)) {
- printf(": failed to map memory space\n");
+ printf(": can't map mem space\n");
return;
}
#endif
/* Allocate interrupt */
if (pci_intr_map(pa, &ih)) {
- printf(": couldn't map interrupt\n");
+ printf(": can't map interrupt\n");
goto fail_1;
}
intrstr = pci_intr_string(pc, ih);
sc->sc_ih = pci_intr_establish(pc, ih, IPL_NET, vr_intr, sc,
self->dv_xname);
if (sc->sc_ih == NULL) {
- printf(": could not establish interrupt");
+ printf(": can't establish interrupt");
if (intrstr != NULL)
printf(" at %s", intrstr);
printf("\n");