Changeset 38644 in vbox for trunk/src/VBox/Storage/Debug
- Timestamp:
- Sep 5, 2011 4:45:44 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 73852
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/Debug/VDDbgIoLog.cpp
r38631 r38644 98 98 { 99 99 /** Event type. */ 100 uint 8_tu32Type;100 uint32_t u32Type; 101 101 /** Id of the matching start entry. */ 102 102 uint64_t u64Id; … … 328 328 pIoLogger->offReadNext = sizeof(Hdr); 329 329 pIoLogger->idNext = RT_LE2H_U64(Hdr.u64Id); 330 *phIoLogger = pIoLogger; 330 331 } 331 332 else if (RT_SUCCESS(rc)) … … 468 469 pIoLogEntry->idStart = pIoLogger->idNext++; 469 470 470 Entry.u32Type 471 Entry.u32Type = VDIOLOG_EVENT_START; 471 472 Entry.u8AsyncIo = fAsync ? 1 : 0; 472 473 Entry.u32ReqType = VDDBGIOLOGREQ_DISCARD; 474 Entry.u64Id = RT_H2LE_U64(pIoLogEntry->idStart); 473 475 Entry.Discard.cRanges = RT_H2LE_U32(cRanges); 474 476 … … 588 590 if (RT_SUCCESS(rc)) 589 591 { 590 pIoLogger->u32EventTypeNext = (VDIOLOGEVENT)abBuf[0];592 pIoLogger->u32EventTypeNext = abBuf[0]; 591 593 pIoLogger->enmReqTypeNext = (VDDBGIOLOGREQ)abBuf[1]; 592 594 } … … 687 689 rc = VERR_INVALID_STATE; 688 690 691 if (RT_SUCCESS(rc)) 692 pIoLogger->u32EventTypeNext = 0; 693 689 694 RTSemFastMutexRelease(pIoLogger->hMtx); 690 695 return rc; … … 748 753 rc = VERR_INVALID_STATE; 749 754 755 if (RT_SUCCESS(rc)) 756 pIoLogger->u32EventTypeNext = 0; 757 750 758 RTSemFastMutexRelease(pIoLogger->hMtx); 751 759 return rc; … … 796 804 rc = VERR_INVALID_STATE; 797 805 806 if (RT_SUCCESS(rc)) 807 pIoLogger->u32EventTypeNext = 0; 808 798 809 RTSemFastMutexRelease(pIoLogger->hMtx); 799 810 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.