- Timestamp:
- Dec 15, 2021 4:07:43 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VirtIO/VirtioCore.cpp
r92939 r92940 517 517 memset(pszBuf, 0, uSize); 518 518 char *cp = pszBuf, *sep = (char *)""; 519 int len;519 size_t len; 520 520 if (bStatus == 0) 521 521 RTStrPrintf(cp, uSize, "RESET"); … … 1435 1435 pVirtio->fDeviceStatus = *(uint8_t *)pv; 1436 1436 bool fDeviceReset = pVirtio->fDeviceStatus == 0; 1437 1437 #ifdef LOG_ENABLED 1438 1438 if (LogIs7Enabled()) 1439 1439 { … … 1442 1442 Log(("%-23s: Guest wrote fDeviceStatus ................ (%s)\n", __FUNCTION__, szOut)); 1443 1443 } 1444 #endif 1444 1445 bool const fStatusChanged = IS_DRIVER_OK(pVirtio) != WAS_DRIVER_OK(pVirtio); 1445 1446 … … 1472 1473 { 1473 1474 *(uint8_t *)pv = pVirtio->fDeviceStatus; 1474 1475 #ifdef LOG_ENABLED 1475 1476 if (LogIs7Enabled()) 1476 1477 { … … 1479 1480 LogFunc(("Guest read fDeviceStatus ................ (%s)\n", szOut)); 1480 1481 } 1482 #endif 1481 1483 } 1482 1484 } … … 1567 1569 { 1568 1570 *(uint8_t *)pu32 = pVirtio->fDeviceStatus; 1571 #ifdef LOG_ENABLED 1569 1572 if (LogIs7Enabled()) 1570 1573 { … … 1573 1576 Log(("%-23s: Guest read fDeviceStatus ................ (%s)\n", __FUNCTION__, szOut)); 1574 1577 } 1578 #endif 1575 1579 } 1576 1580 else … … 1704 1708 bool const fDriverInitiatedReset = (pVirtio->fDeviceStatus = (uint8_t)u32) == 0; 1705 1709 bool const fDriverStateImproved = IS_DRIVER_OK(pVirtio) && !WAS_DRIVER_OK(pVirtio); 1706 1710 #ifdef LOG_ENABLED 1707 1711 if (LogIs7Enabled()) 1708 1712 { … … 1711 1715 Log(("%-23s: Guest wrote fDeviceStatus ................ (%s)\n", __FUNCTION__, szOut)); 1712 1716 } 1717 #endif 1713 1718 if (fDriverStateImproved || fDriverInitiatedReset) 1714 1719 { … … 2063 2068 2064 2069 char szOut[80] = { 0 }; 2070 #ifdef LOG_ENABLED 2065 2071 virtioCoreFormatDeviceStatus(pVirtio->fDeviceStatus, szOut, sizeof(szOut)); 2072 #endif 2066 2073 Log(("Loaded legacy device status = (%s)\n", szOut)); 2067 2074
Note:
See TracChangeset
for help on using the changeset viewer.