mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-13 14:40:22 +00:00
When panicing in device_unbusy(), actually tell what device has the issue.
This commit is contained in:
parent
9c8d3b8871
commit
405a104ec0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138402
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user