VirtualBox

Changeset 79390 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 27, 2019 12:41:22 PM (6 years ago)
Author:
vboxsync
Message:

VBoxUsbLib-win: More logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/lib/VBoxUsbLib-win.cpp

    r78999 r79390  
    391391    {
    392392#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()));
    395394#endif
    396395        return VERR_GENERAL_FAILURE;
     
    611610    {
    612611        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));
    614613        return RTErrConvertFromWin32(dwErr);
    615614    }
     
    770769    {
    771770        DWORD dwErr = GetLastError(); NOREF(dwErr);
     771        LogRel(("Getting USB connection information failed with error %ld\n", dwErr));
    772772        AssertMsg(dwErr == ERROR_DEVICE_NOT_CONNECTED, (__FUNCTION__": DeviceIoControl failed dwErr (%d)\n", dwErr));
    773773        return VERR_GENERAL_FAILURE;
     
    814814        rc = usbLibDevStrDrEntryGetAll(hHub, iPort, &pConInfo->DeviceDescriptor, pCfgDr, &pList);
    815815#ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS
    816         AssertRC(rc);
     816        AssertRC(rc); // this can fail if device suspended
    817817#endif
    818818    }
     
    878878                            &cbReturned, NULL))
    879879        {
     880            LogRel(("Getting USB node information failed with error %ld\n", GetLastError()));
    880881            AssertFailed();
    881882            break;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette