When panicing in device_unbusy(), actually tell what device has the issue.

This commit is contained in:
obrien 2004-12-05 20:58:56 +00:00
parent 8529052f76
commit 70d525536e

View File

@ -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)