Output some more debug output in case of port reset failure.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26546 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2008-07-21 13:11:53 +00:00
parent 1f855f9696
commit 508dd5f91d
2 changed files with 4 additions and 2 deletions

View File

@ -215,8 +215,10 @@ Hub::Explore(change_item **changeList)
// reset the port, this will also enable it
result = ResetPort(i);
if (result < B_OK)
if (result < B_OK) {
TRACE_ERROR(("USB Hub %d: resetting port %ld failed\n", DeviceAddress(), i));
continue;
}
result = UpdatePortStatus(i);
if (result < B_OK)

View File

@ -721,7 +721,7 @@ EHCI::ResetPort(uint8 index)
portStatus = ReadOpReg(portRegister) & EHCI_PORTSC_DATAMASK;
if (portStatus & EHCI_PORTSC_PORTRESET) {
TRACE(("usb_ehci: port reset won't complete\n"));
TRACE_ERROR(("usb_ehci: port reset won't complete\n"));
return B_ERROR;
}