VirtualBox

Ignore:
Timestamp:
Jun 1, 2021 3:50:07 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144791
Message:

Hist USB timer: use uniqe naming in order not to confuse STAM on USB hotplug, bugref:10021.

File:
1 edited

Legend:

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

    r87773 r89437  
    18311831    char szName[32];
    18321832    AssertReturn(strlen(pszDesc) < sizeof(szName) - 8, VERR_INVALID_NAME);
    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     }
     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    pszDesc = szName;
    18381836
    18391837    int rc = TMR3TimerCreateUsb(pVM, pUsbIns, enmClock, pfnCallback, pvUser, fFlags, pszDesc, phTimer);
Note: See TracChangeset for help on using the changeset viewer.

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