Changeset 79390 in vbox for trunk/src/VBox
- Timestamp:
- Jun 27, 2019 12:41:22 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/win/lib/VBoxUsbLib-win.cpp
r78999 r79390 391 391 { 392 392 #ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS 393 DWORD dwErr = GetLastError(); 394 AssertMsgFailed(("DeviceIoControl 1 fail dwErr (%d)\n", dwErr)); 393 AssertMsgFailed(("DeviceIoControl 1 fail dwErr (%d)\n", GetLastError())); 395 394 #endif 396 395 return VERR_GENERAL_FAILURE; … … 611 610 { 612 611 DWORD dwErr = GetLastError(); 613 LogRel(("Getting USB descriptor failed with error %ld\n", dwErr));612 LogRel(("Getting USB descriptor (id %u) failed with error %ld\n", iDr, dwErr)); 614 613 return RTErrConvertFromWin32(dwErr); 615 614 } … … 770 769 { 771 770 DWORD dwErr = GetLastError(); NOREF(dwErr); 771 LogRel(("Getting USB connection information failed with error %ld\n", dwErr)); 772 772 AssertMsg(dwErr == ERROR_DEVICE_NOT_CONNECTED, (__FUNCTION__": DeviceIoControl failed dwErr (%d)\n", dwErr)); 773 773 return VERR_GENERAL_FAILURE; … … 814 814 rc = usbLibDevStrDrEntryGetAll(hHub, iPort, &pConInfo->DeviceDescriptor, pCfgDr, &pList); 815 815 #ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS 816 AssertRC(rc); 816 AssertRC(rc); // this can fail if device suspended 817 817 #endif 818 818 } … … 878 878 &cbReturned, NULL)) 879 879 { 880 LogRel(("Getting USB node information failed with error %ld\n", GetLastError())); 880 881 AssertFailed(); 881 882 break;
Note:
See TracChangeset
for help on using the changeset viewer.