summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_rman.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-05-28 01:00:03 +0000
committerbrian <brian@FreeBSD.org>2001-05-28 01:00:03 +0000
commit723d7c5d157709bfe0f34cdb3ea2060ca183657b (patch)
tree5bea0cf0e060857df09dbef057f7d260d4fc935e /sys/kern/subr_rman.c
parent0c7673b25ee096a478fd4d620df7ae5adee47708 (diff)
downloadFreeBSD-src-723d7c5d157709bfe0f34cdb3ea2060ca183657b.zip
FreeBSD-src-723d7c5d157709bfe0f34cdb3ea2060ca183657b.tar.gz
Handle NULL struct device *s
Diffstat (limited to 'sys/kern/subr_rman.c')
-rw-r--r--sys/kern/subr_rman.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_rman.c b/sys/kern/subr_rman.c
index 9b898c4..f9941da 100644
--- a/sys/kern/subr_rman.c
+++ b/sys/kern/subr_rman.c
@@ -188,8 +188,8 @@ rman_reserve_resource(struct rman *rm, u_long start, u_long end, u_long count,
rv = 0;
DPRINTF(("rman_reserve_resource: <%s> request: [%#lx, %#lx], length "
- "%#lx, flags %u, device %s%d\n", rm->rm_descr, start, end,
- count, flags, device_get_name(dev), device_get_unit(dev)));
+ "%#lx, flags %u, device %s\n", rm->rm_descr, start, end, count,
+ flags, dev == NULL ? "<null>" : device_get_nameunit(dev)));
want_activate = (flags & RF_ACTIVE);
flags &= ~RF_ACTIVE;
OpenPOWER on IntegriCloud