summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_bus.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2004-12-05 20:58:56 +0000
committerobrien <obrien@FreeBSD.org>2004-12-05 20:58:56 +0000
commit70d525536e5db056decb50c63951f53f5a698d52 (patch)
treeed987b10fd597d66df63960ba332ea615e50eb69 /sys/kern/subr_bus.c
parent8529052f76ebfb06a9d7cb15e784279a53c9c4c6 (diff)
downloadFreeBSD-src-70d525536e5db056decb50c63951f53f5a698d52.zip
FreeBSD-src-70d525536e5db056decb50c63951f53f5a698d52.tar.gz
When panicing in device_unbusy(), actually tell what device has the issue.
Diffstat (limited to 'sys/kern/subr_bus.c')
-rw-r--r--sys/kern/subr_bus.c3
1 files changed, 2 insertions, 1 deletions
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)
OpenPOWER on IntegriCloud