VirtualBox

Ignore:
Timestamp:
Feb 16, 2021 11:36:15 PM (4 years ago)
Author:
vboxsync
Message:

VMM/TM,Devices: Store the timer name in the TMTIMER structure and limit it to 31 characters. Shortened most timer names. bugref:9943

File:
1 edited

Legend:

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

    r87772 r87773  
    13251325    LogFlow(("pdmR3DrvHlp_TimerCreate: caller='%s'/%d: enmClock=%d pfnCallback=%p pvUser=%p fFlags=%#x pszDesc=%p:{%s} phTimer=%p\n",
    13261326             pDrvIns->pReg->szName, pDrvIns->iInstance, enmClock, pfnCallback, pvUser, fFlags, pszDesc, pszDesc, phTimer));
     1327
     1328    /* Mangle the timer name if there are more than once instance of this driver. */
     1329    char szName[32];
     1330    AssertReturn(strlen(pszDesc) < sizeof(szName) - 3, VERR_INVALID_NAME);
     1331    if (pDrvIns->iInstance > 0)
     1332    {
     1333        RTStrPrintf(szName, sizeof(szName), "%s[%u]", pszDesc, pDrvIns->iInstance);
     1334        pszDesc = szName;
     1335    }
    13271336
    13281337    /* Clear the ring-0 flag if the driver isn't configured for ring-0. */
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