aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/pci
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2010-03-31 22:27:33 +0000
committerMarius Strobl <marius@FreeBSD.org>2010-03-31 22:27:33 +0000
commit789a702ad3a8f9e31703a22a739357292454a074 (patch)
tree0a45c8a5981cc3033b50bb0cc54b745ecbefd1b4 /sys/sparc64/pci
parent4a717bcedc4d6950e51cc52c25f4a30f329b26a1 (diff)
downloadsrc-789a702ad3a8f9e31703a22a739357292454a074.tar.gz
src-789a702ad3a8f9e31703a22a739357292454a074.zip
Don't re-implement device_get_nameunit(9).
Notes
Notes: svn path=/head/; revision=206019
Diffstat (limited to 'sys/sparc64/pci')
-rw-r--r--sys/sparc64/pci/apb.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/sys/sparc64/pci/apb.c b/sys/sparc64/pci/apb.c
index 2f4932e2c1cc..098e191f4638 100644
--- a/sys/sparc64/pci/apb.c
+++ b/sys/sparc64/pci/apb.c
@@ -223,8 +223,7 @@ apb_alloc_resource(device_t dev, device_t child, int type, int *rid,
*/
if (start == 0 && end == ~0) {
device_printf(dev, "can't decode default resource id %d for "
- "%s%d, bypassing\n", *rid, device_get_name(child),
- device_get_unit(child));
+ "%s, bypassing\n", *rid, device_get_nameunit(child));
goto passup;
}
@@ -236,31 +235,28 @@ apb_alloc_resource(device_t dev, device_t child, int type, int *rid,
switch (type) {
case SYS_RES_IOPORT:
if (!apb_checkrange(sc->sc_iomap, APB_IO_SCALE, start, end)) {
- device_printf(dev, "device %s%d requested unsupported "
- "I/O range 0x%lx-0x%lx\n", device_get_name(child),
- device_get_unit(child), start, end);
+ device_printf(dev, "device %s requested unsupported "
+ "I/O range 0x%lx-0x%lx\n",
+ device_get_nameunit(child), start, end);
return (NULL);
}
if (bootverbose)
device_printf(sc->sc_bsc.ops_pcib_sc.dev, "device "
- "%s%d requested decoded I/O range 0x%lx-0x%lx\n",
- device_get_name(child), device_get_unit(child),
- start, end);
+ "%s requested decoded I/O range 0x%lx-0x%lx\n",
+ device_get_nameunit(child), start, end);
break;
case SYS_RES_MEMORY:
if (!apb_checkrange(sc->sc_memmap, APB_MEM_SCALE, start, end)) {
- device_printf(dev, "device %s%d requested unsupported "
+ device_printf(dev, "device %s requested unsupported "
"memory range 0x%lx-0x%lx\n",
- device_get_name(child), device_get_unit(child),
- start, end);
+ device_get_nameunit(child), start, end);
return (NULL);
}
if (bootverbose)
device_printf(sc->sc_bsc.ops_pcib_sc.dev, "device "
- "%s%d requested decoded memory range 0x%lx-0x%lx\n",
- device_get_name(child), device_get_unit(child),
- start, end);
+ "%s requested decoded memory range 0x%lx-0x%lx\n",
+ device_get_nameunit(child), start, end);
break;
default: