VirtualBox

Changeset 92940 in vbox for trunk


Ignore:
Timestamp:
Dec 15, 2021 4:07:43 PM (3 years ago)
Author:
vboxsync
Message:

Attempt 1 burn fix. virtioCoreFormatDeviceStatus() saying undefined. Trying to wrap in #ifdef LOG_ENABLED, and hope that's the issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VirtIO/VirtioCore.cpp

    r92939 r92940  
    517517    memset(pszBuf, 0, uSize);
    518518    char *cp = pszBuf, *sep = (char *)"";
    519     int len;
     519    size_t len;
    520520    if (bStatus == 0)
    521521        RTStrPrintf(cp, uSize, "RESET");
     
    14351435            pVirtio->fDeviceStatus = *(uint8_t *)pv;
    14361436            bool fDeviceReset = pVirtio->fDeviceStatus == 0;
    1437 
     1437#ifdef LOG_ENABLED
    14381438            if (LogIs7Enabled())
    14391439            {
     
    14421442                Log(("%-23s: Guest wrote fDeviceStatus ................ (%s)\n", __FUNCTION__, szOut));
    14431443            }
     1444#endif
    14441445            bool const fStatusChanged = IS_DRIVER_OK(pVirtio) != WAS_DRIVER_OK(pVirtio);
    14451446
     
    14721473        {
    14731474            *(uint8_t *)pv = pVirtio->fDeviceStatus;
    1474 
     1475#ifdef LOG_ENABLED
    14751476            if (LogIs7Enabled())
    14761477            {
     
    14791480                LogFunc(("Guest read  fDeviceStatus ................ (%s)\n", szOut));
    14801481            }
     1482#endif
    14811483        }
    14821484    }
     
    15671569    {
    15681570        *(uint8_t *)pu32 = pVirtio->fDeviceStatus;
     1571#ifdef LOG_ENABLED
    15691572        if (LogIs7Enabled())
    15701573        {
     
    15731576            Log(("%-23s: Guest read  fDeviceStatus ................ (%s)\n", __FUNCTION__, szOut));
    15741577        }
     1578#endif
    15751579    }
    15761580    else
     
    17041708        bool const fDriverInitiatedReset = (pVirtio->fDeviceStatus = (uint8_t)u32) == 0;
    17051709        bool const fDriverStateImproved = IS_DRIVER_OK(pVirtio) && !WAS_DRIVER_OK(pVirtio);
    1706 
     1710#ifdef LOG_ENABLED
    17071711        if (LogIs7Enabled())
    17081712        {
     
    17111715            Log(("%-23s: Guest wrote fDeviceStatus ................ (%s)\n", __FUNCTION__, szOut));
    17121716        }
     1717#endif
    17131718        if (fDriverStateImproved  || fDriverInitiatedReset)
    17141719        {
     
    20632068
    20642069    char szOut[80] = { 0 };
     2070#ifdef LOG_ENABLED
    20652071    virtioCoreFormatDeviceStatus(pVirtio->fDeviceStatus, szOut, sizeof(szOut));
     2072#endif
    20662073    Log(("Loaded legacy device status = (%s)\n", szOut));
    20672074
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