VirtualBox

Ignore:
Timestamp:
Mar 3, 2010 1:34:17 PM (15 years ago)
Author:
vboxsync
Message:

Commit the correct file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/testcase/tstVD.cpp

    r23973 r26988  
    5454}
    5555
     56static 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}
    5666
    5767static int tstVDCreateDelete(const char *pszBackend, const char *pszFilename,
     
    8191    VDIErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR;
    8292    VDIErrorCallbacks.pfnError = tstVDError;
     93    VDIErrorCallbacks.pfnMessage = tstVDMessage;
    8394
    8495    rc = VDInterfaceAdd(&VDIError, "tstVD_Error", VDINTERFACETYPE_ERROR, &VDIErrorCallbacks,
     
    138149    VDIErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR;
    139150    VDIErrorCallbacks.pfnError = tstVDError;
     151    VDIErrorCallbacks.pfnMessage = tstVDMessage;
    140152
    141153    rc = VDInterfaceAdd(&VDIError, "tstVD_Error", VDINTERFACETYPE_ERROR, &VDIErrorCallbacks,
     
    525537    VDIErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR;
    526538    VDIErrorCallbacks.pfnError = tstVDError;
     539    VDIErrorCallbacks.pfnMessage = tstVDMessage;
    527540
    528541    rc = VDInterfaceAdd(&VDIError, "tstVD_Error", VDINTERFACETYPE_ERROR, &VDIErrorCallbacks,
     
    625638    uint64_t u64DiskSize  = 1000 * _1M;
    626639    uint32_t u32SectorSize = 512;
    627     PVDINTERFACE     pVDIfs;
     640    PVDINTERFACE     pVDIfs = NULL;
    628641    VDINTERFACE      VDIError;
    629642    VDINTERFACEERROR VDIErrorCallbacks;
     
    648661    VDIErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR;
    649662    VDIErrorCallbacks.pfnError = tstVDError;
     663    VDIErrorCallbacks.pfnMessage = tstVDMessage;
    650664
    651665    rc = VDInterfaceAdd(&VDIError, "tstVD_Error", VDINTERFACETYPE_ERROR, &VDIErrorCallbacks,
     
    722736    VDIErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR;
    723737    VDIErrorCallbacks.pfnError = tstVDError;
     738    VDIErrorCallbacks.pfnMessage = tstVDMessage;
    724739
    725740    rc = VDInterfaceAdd(&VDIError, "tstVD_Error", VDINTERFACETYPE_ERROR, &VDIErrorCallbacks,
     
    771786    VDIErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR;
    772787    VDIErrorCallbacks.pfnError = tstVDError;
     788    VDIErrorCallbacks.pfnMessage = tstVDMessage;
    773789
    774790    rc = VDInterfaceAdd(&VDIError, "tstVD_Error", VDINTERFACETYPE_ERROR, &VDIErrorCallbacks,
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