Changeset 26988 in vbox for trunk/src/VBox/Devices/Storage/testcase/tstVD.cpp
- Timestamp:
- Mar 3, 2010 1:34:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/testcase/tstVD.cpp
r23973 r26988 54 54 } 55 55 56 static int tstVDMessage(void *pvUser, const char *pszFormat, ...) 57 { 58 va_list va; 59 60 RTPrintf("tstVD: "); 61 va_start(va, pszFormat); 62 RTPrintfV(pszFormat, va); 63 va_end(va); 64 return VINF_SUCCESS; 65 } 56 66 57 67 static int tstVDCreateDelete(const char *pszBackend, const char *pszFilename, … … 81 91 VDIErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR; 82 92 VDIErrorCallbacks.pfnError = tstVDError; 93 VDIErrorCallbacks.pfnMessage = tstVDMessage; 83 94 84 95 rc = VDInterfaceAdd(&VDIError, "tstVD_Error", VDINTERFACETYPE_ERROR, &VDIErrorCallbacks, … … 138 149 VDIErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR; 139 150 VDIErrorCallbacks.pfnError = tstVDError; 151 VDIErrorCallbacks.pfnMessage = tstVDMessage; 140 152 141 153 rc = VDInterfaceAdd(&VDIError, "tstVD_Error", VDINTERFACETYPE_ERROR, &VDIErrorCallbacks, … … 525 537 VDIErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR; 526 538 VDIErrorCallbacks.pfnError = tstVDError; 539 VDIErrorCallbacks.pfnMessage = tstVDMessage; 527 540 528 541 rc = VDInterfaceAdd(&VDIError, "tstVD_Error", VDINTERFACETYPE_ERROR, &VDIErrorCallbacks, … … 625 638 uint64_t u64DiskSize = 1000 * _1M; 626 639 uint32_t u32SectorSize = 512; 627 PVDINTERFACE pVDIfs ;640 PVDINTERFACE pVDIfs = NULL; 628 641 VDINTERFACE VDIError; 629 642 VDINTERFACEERROR VDIErrorCallbacks; … … 648 661 VDIErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR; 649 662 VDIErrorCallbacks.pfnError = tstVDError; 663 VDIErrorCallbacks.pfnMessage = tstVDMessage; 650 664 651 665 rc = VDInterfaceAdd(&VDIError, "tstVD_Error", VDINTERFACETYPE_ERROR, &VDIErrorCallbacks, … … 722 736 VDIErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR; 723 737 VDIErrorCallbacks.pfnError = tstVDError; 738 VDIErrorCallbacks.pfnMessage = tstVDMessage; 724 739 725 740 rc = VDInterfaceAdd(&VDIError, "tstVD_Error", VDINTERFACETYPE_ERROR, &VDIErrorCallbacks, … … 771 786 VDIErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR; 772 787 VDIErrorCallbacks.pfnError = tstVDError; 788 VDIErrorCallbacks.pfnMessage = tstVDMessage; 773 789 774 790 rc = VDInterfaceAdd(&VDIError, "tstVD_Error", VDINTERFACETYPE_ERROR, &VDIErrorCallbacks,
Note:
See TracChangeset
for help on using the changeset viewer.