diff options
author | imp <imp@FreeBSD.org> | 2002-09-13 16:23:41 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-09-13 16:23:41 +0000 |
commit | f2ab40c05ef67ceaec6b13b8fe399b8b4ec384f3 (patch) | |
tree | d1a70e5df09518d0768c2c03e0736460cb4565bb /sys/pccard/pccard.c | |
parent | c568640675e484a682bb821038c19634699d5e83 (diff) | |
download | FreeBSD-src-f2ab40c05ef67ceaec6b13b8fe399b8b4ec384f3.zip FreeBSD-src-f2ab40c05ef67ceaec6b13b8fe399b8b4ec384f3.tar.gz |
For boot verbose, print resources assigned in a more asthetically pleasing
way.
PR: 42745 (although done in a different way)
Diffstat (limited to 'sys/pccard/pccard.c')
-rw-r--r-- | sys/pccard/pccard.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/sys/pccard/pccard.c b/sys/pccard/pccard.c index 5500f5e..6115271 100644 --- a/sys/pccard/pccard.c +++ b/sys/pccard/pccard.c @@ -245,11 +245,17 @@ allocate_driver(struct slot *slt, struct dev_desc *desc) device_set_flags(child, desc->flags); device_set_ivars(child, devi); if (bootverbose) { - device_printf(pccarddev, - "Assigning %s: io 0x%x-0x%x irq %d mem 0x%lx-0x%lx\n", - device_get_nameunit(child), - desc->iobase, desc->iobase + desc->iosize - 1, - irq, desc->mem, desc->mem + desc->memsize - 1); + device_printf(pccarddev, "Assigning %s:", + device_get_nameunit(child)); + if (desc->iobase) + printf(" io 0x%x-0x%x", + desc->iobase, desc->iobase + desc->iosize - 1); + if (irq) + printf(" irq %d", irq); + if (desc->mem) + printf(" mem 0x%lx-0x%lx", desc->mem, + desc->mem + desc->memsize - 1); + printf(" flags 0x%x\n", desc->flags); } err = bus_set_resource(child, SYS_RES_IOPORT, 0, desc->iobase, desc->iosize); |