From 70d525536e5db056decb50c63951f53f5a698d52 Mon Sep 17 00:00:00 2001 From: obrien Date: Sun, 5 Dec 2004 20:58:56 +0000 Subject: When panicing in device_unbusy(), actually tell what device has the issue. --- sys/kern/subr_bus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/kern/subr_bus.c') diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 36480fb..05bfe65 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -2017,7 +2017,8 @@ void device_unbusy(device_t dev) { if (dev->state != DS_BUSY) - panic("device_unbusy: called for non-busy device"); + panic("device_unbusy: called for non-busy device %s", + device_get_nameunit(dev)); dev->busy--; if (dev->busy == 0) { if (dev->parent) -- cgit v1.1