summaryrefslogtreecommitdiff
path: root/sys/dev/pci/gdt_pci.c
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2009-03-29 21:53:54 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2009-03-29 21:53:54 +0000
commit69c5b21cf2da9c2ff6a2d3adf1f48f811feac372 (patch)
tree599868694b84d6aa6c93806fb08f3921218dba10 /sys/dev/pci/gdt_pci.c
parente8880d029cebac8827fe0228bf64b8a2ba3ad456 (diff)
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/gdt_pci.c')
-rw-r--r--sys/dev/pci/gdt_pci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/gdt_pci.c b/sys/dev/pci/gdt_pci.c
index b84e47a1e6d..5441b56e244 100644
--- a/sys/dev/pci/gdt_pci.c
+++ b/sys/dev/pci/gdt_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gdt_pci.c,v 1.21 2007/10/17 02:51:39 fgsch Exp $ */
+/* $OpenBSD: gdt_pci.c,v 1.22 2009/03/29 21:53:52 sthen Exp $ */
/*
* Copyright (c) 1999, 2000 Niklas Hallqvist. All rights reserved.
@@ -277,14 +277,14 @@ gdt_pci_attach(struct device *parent, struct device *self, void *aux)
if (GDT_CLASS(sc) == GDT_PCINEW) {
if (pci_mapreg_map(pa, GDT_PCINEW_IOMEM, PCI_MAPREG_TYPE_MEM,
0, &iomemt, &iomemh, &iomembase, &iomemsize, 0)) {
- printf("cannot map memory mapped I/O ports\n");
+ printf("can't map memory mapped i/o ports\n");
goto bail_out;
}
status |= IOMEM_MAPPED;
if (pci_mapreg_map(pa, GDT_PCINEW_IO, PCI_MAPREG_TYPE_IO, 0,
&iot, &ioh, &iobase, &iosize, 0)) {
- printf("cannot map I/O ports\n");
+ printf("can't map i/o space\n");
goto bail_out;
}
status |= IO_MAPPED;
@@ -298,7 +298,7 @@ gdt_pci_attach(struct device *parent, struct device *self, void *aux)
bus_space_set_region_4(dpmemt, dpmemh, 0, 0,
GDT_DPR_IF_SZ >> 2);
if (bus_space_read_1(dpmemt, dpmemh, 0) != 0) {
- printf("cannot write to DPMEM\n");
+ printf("can't write to DPMEM\n");
goto bail_out;
}