VirtualBox

Changeset 89673 in vbox


Ignore:
Timestamp:
Jun 14, 2021 9:38:15 AM (4 years ago)
Author:
vboxsync
Message:

VMM/PDMUsb: Backed out r145077 + 144791. This problem should be fixed in the VUsb code. bugref:10021

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PDMUsb.cpp

    r89632 r89673  
    18311831    char szName[32];
    18321832    AssertReturn(strlen(pszDesc) < sizeof(szName) - 8, VERR_INVALID_NAME);
    1833     /* Try to use unique names for USB timers in order not to confuse STAM (see xtracker#10021). */
    1834     RTStrPrintf(szName, sizeof(szName), "%s[%u:%s]", pszDesc, pUsbIns->iInstance, pUsbIns->Internal.s.pUsbDev->pReg->szName);
    1835 
    1836     int rc = TMR3TimerCreateUsb(pVM, pUsbIns, enmClock, pfnCallback, pvUser, fFlags, szName, phTimer);
     1833    if (pUsbIns->iInstance > 0)
     1834    {
     1835        RTStrPrintf(szName, sizeof(szName), "%s[%u:%s]", pszDesc, pUsbIns->iInstance, pUsbIns->Internal.s.pUsbDev->pReg->szName);
     1836        pszDesc = szName;
     1837    }
     1838
     1839    int rc = TMR3TimerCreateUsb(pVM, pUsbIns, enmClock, pfnCallback, pvUser, fFlags, pszDesc, phTimer);
    18371840
    18381841    LogFlow(("pdmR3UsbHlp_TMTimerCreate: caller='%s'/%d: returns %Rrc *phTimer=%p\n", pUsbIns->pReg->szName, pUsbIns->iInstance, rc, *phTimer));
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