VirtualBox

Changeset 87627 in vbox for trunk/src/VBox/Devices/USB


Ignore:
Timestamp:
Feb 5, 2021 4:49:57 PM (4 years ago)
Author:
vboxsync
Message:

VUSB: Minor logging improvements.

Location:
trunk/src/VBox/Devices/USB
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/USBProxyDevice.cpp

    r86515 r87627  
    9999        if (RT_FAILURE(rc))
    100100        {
    101             Log(("GetStdDescSync: pfnUrbReap failed, rc=%d\n", rc));
     101            Log(("GetStdDescSync: pfnUrbQueue failed, rc=%d\n", rc));
    102102            goto err;
    103103        }
     
    110110        if (!pUrbReaped)
    111111        {
     112            Log(("GetStdDescSync: pfnUrbReap returned NULL, cancel and re-reap\n"));
    112113            rc = pProxyDev->pOps->pfnUrbCancel(pProxyDev, &Urb);
    113114            AssertRC(rc);
  • trunk/src/VBox/Devices/USB/VUSBUrbTrace.cpp

    r82968 r87627  
    220220        pSetup = pPipe->pCtrl->pMsg;
    221221        if (pSetup->bRequest == VUSB_REQ_GET_DESCRIPTOR)
    222             fDescriptors = true;
     222            /* HID report (0x22) and physical (0x23) descriptors do not use standard format
     223             * with descriptor length/type at the front. Don't try to dump them, we'll only
     224             * misinterpret them.
     225             */
     226            if (    ((pSetup->bmRequestType >> 5) & 0x3) == 1   /* class */
     227                && (RT_HIBYTE(pSetup->wValue) == 0x22) || (RT_HIBYTE(pSetup->wValue) == 0x23))
     228            {
     229                fDescriptors = false;
     230            }
     231            else
     232                fDescriptors = true;
    223233    }
    224234
     
    376386                                     s_cchMaxMsg, pszMsg, pb - pbData, cb - 2, cb / 2 - 1, pb + 2));
    377387                            else
    378                                 Log(("URB: %*s:       %04x: Length=0!\n", s_cchMaxMsg, pszMsg, pb - pbData));
     388                                Log(("URB: %*s:       %04x: Length=0\n", s_cchMaxMsg, pszMsg, pb - pbData));
    379389                        }
    380390                        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