Changeset 84782 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jun 11, 2020 7:13:53 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VirtIO/Virtio_1_0.cpp
r84780 r84782 491 491 { 492 492 #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; 494 494 char *pszBuf = (char *)RTMemAllocZ(cbRemain), *pszOut = pszBuf; 495 495 AssertMsgReturnVoid(pszBuf, ("Out of Memory")); … … 539 539 { 540 540 #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; 542 542 char *pszBuf = (char *)RTMemAllocZ(cbRemain), *pszOut = pszBuf; 543 543 AssertMsgReturnVoid(pszBuf, ("Out of Memory")); … … 700 700 uint16_t uUsedIdxShadow = pVirtq->uUsedIdxShadow; 701 701 702 PVIRTIO_DESC_CHAIN_T pDescChain ;702 PVIRTIO_DESC_CHAIN_T pDescChain = NULL; 703 703 704 704 bool fEmpty = IS_VIRTQ_EMPTY(pDevIns, pVirtio, pVirtq); … … 1219 1219 ("Guest driver not in ready state.\n"), VERR_INVALID_STATE); 1220 1220 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)); 1224 1223 1225 1224 virtioWriteUsedRingIdx(pDevIns, pVirtio, idxQueue, pVirtq->uUsedIdxShadow);
Note:
See TracChangeset
for help on using the changeset viewer.