VirtualBox

Changeset 84782 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jun 11, 2020 7:13:53 AM (5 years ago)
Author:
vboxsync
Message:

Attempt to fix burn

File:
1 edited

Legend:

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

    r84780 r84782  
    491491{
    492492#define ADJCURSOR(cb) pszOut += cb; cbRemain -= cb;
    493     int cbPrint = 0, cbRemain = ((cb / 16) + 1) * 80;
     493    size_t cbPrint = 0, cbRemain = ((cb / 16) + 1) * 80;
    494494    char *pszBuf = (char *)RTMemAllocZ(cbRemain), *pszOut = pszBuf;
    495495    AssertMsgReturnVoid(pszBuf, ("Out of Memory"));
     
    539539{
    540540#define ADJCURSOR(cb) pszOut += cb; cbRemain -= cb;
    541     int cbPrint = 0, cbRemain = ((cb / 16) + 1) * 80;
     541    size_t cbPrint = 0, cbRemain = ((cb / 16) + 1) * 80;
    542542    char *pszBuf = (char *)RTMemAllocZ(cbRemain), *pszOut = pszBuf;
    543543    AssertMsgReturnVoid(pszBuf, ("Out of Memory"));
     
    700700    uint16_t uUsedIdxShadow  = pVirtq->uUsedIdxShadow;
    701701
    702     PVIRTIO_DESC_CHAIN_T pDescChain;
     702    PVIRTIO_DESC_CHAIN_T pDescChain = NULL;
    703703
    704704    bool fEmpty = IS_VIRTQ_EMPTY(pDevIns, pVirtio, pVirtq);
     
    12191219                    ("Guest driver not in ready state.\n"), VERR_INVALID_STATE);
    12201220
    1221     Log6Func(("Updating %s used_idx from %u to %u\n",
    1222               VIRTQNAME(pVirtio, idxQueue), virtioReadUsedRingIdx(pDevIns, pVirtio, idxQueue),
    1223               pVirtq->uUsedIdxShadow));
     1221    Log6Func(("Updating %s used_idx to %u\n",
     1222              VIRTQNAME(pVirtio, idxQueue), pVirtq->uUsedIdxShadow));
    12241223
    12251224    virtioWriteUsedRingIdx(pDevIns, pVirtio, idxQueue, pVirtq->uUsedIdxShadow);
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