added error output when ide_adapter can't acquire resources

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16983 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2006-04-03 15:01:26 +00:00
parent 020c1aa823
commit a827021eb0

View File

@ -531,8 +531,10 @@ ide_adapter_detect_channel(pci_device_module_info *pci, pci_device pci_device,
{}
};
if (pnp->acquire_io_resources(resources, resource_handles) != B_OK)
if (pnp->acquire_io_resources(resources, resource_handles) != B_OK) {
SHOW_ERROR( 2, "Couldn't acquire channel resources %d and %d\n", command_block_base, control_block_base);
return B_ERROR;
}
}
return ide_adapter_publish_channel(controller_node, channel_module_name,
@ -666,8 +668,10 @@ ide_adapter_detect_controller(pci_device_module_info *pci, pci_device pci_device
{}
};
if (pnp->acquire_io_resources(resources, resource_handles) != B_OK)
if (pnp->acquire_io_resources(resources, resource_handles) != B_OK) {
SHOW_ERROR( 2, "Couldn't acquire controller resource %d\n", bus_master_base);
return B_ERROR;
}
}
return ide_adapter_publish_controller(parent, bus_master_base, resource_handles,