VirtualBox

Ignore:
Timestamp:
Nov 11, 2010 2:45:10 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67661
Message:

Additions/WINNT/Graphics: more refactoring and some cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideoHGSMI.cpp

    r33951 r33997  
    241241    }
    242242
    243     dprintf(("VBoxVideo::vboxQueryConf: u32Value = %d\n", p->u32Value));
     243    Log(("VBoxVideo::vboxQueryConf: u32Value = %d\n", p->u32Value));
    244244    return VINF_SUCCESS;
    245245}
     
    247247static int vboxQueryConfHGSMI (PVBOXVIDEO_COMMON pCommon, uint32_t u32Index, ULONG *pulValue)
    248248{
    249     dprintf(("VBoxVideo::vboxQueryConf: u32Index = %d\n", u32Index));
     249    Log(("VBoxVideo::vboxQueryConf: u32Index = %d\n", u32Index));
    250250
    251251    QUERYCONFCTX context;
     
    261261                           &context);
    262262
    263     dprintf(("VBoxVideo::vboxQueryConf: rc = %d\n", rc));
     263    Log(("VBoxVideo::vboxQueryConf: rc = %d\n", rc));
    264264
    265265    return rc;
     
    330330static int vboxSetupAdapterInfoHGSMI (PVBOXVIDEO_COMMON pCommon)
    331331{
    332     dprintf(("VBoxVideo::vboxSetupAdapterInfo\n"));
     332    Log(("VBoxVideo::vboxSetupAdapterInfo\n"));
    333333
    334334    /* setup the flags first to ensure they are initialized by the time the host heap is ready */
     
    365365
    366366
    367     dprintf(("VBoxVideo::vboxSetupAdapterInfo finished rc = %d\n", rc));
     367    Log(("VBoxVideo::vboxSetupAdapterInfo finished rc = %d\n", rc));
    368368
    369369    return rc;
     
    384384    VP_STATUS rc = NO_ERROR;
    385385
    386     dprintf(("VBoxVideo::VBoxSetupDisplays: pCommon = %p\n", pCommon));
     386    Log(("VBoxVideo::VBoxSetupDisplays: pCommon = %p\n", pCommon));
    387387
    388388    memset(pCommon, 0, sizeof(*pCommon));
     
    408408        if (rc != NO_ERROR)
    409409        {
    410             dprintf(("VBoxVideo::VBoxSetupDisplays: VBoxMapAdapterMemory pvAdapterInfoirrmation failed rc = %d\n",
     410            Log(("VBoxVideo::VBoxSetupDisplays: VBoxMapAdapterMemory pvAdapterInfoirrmation failed rc = %d\n",
    411411                     rc));
    412412
     
    424424            if (RT_FAILURE (rc))
    425425            {
    426                 dprintf(("VBoxVideo::VBoxSetupDisplays: HGSMIHeapSetup failed rc = %d\n",
     426                Log(("VBoxVideo::VBoxSetupDisplays: HGSMIHeapSetup failed rc = %d\n",
    427427                         rc));
    428428
     
    462462            pCommon->cbMiniportHeap = (cbMiniportHeap + 0xFFF) & ~0xFFF;
    463463
    464             dprintf(("VBoxVideo::VBoxSetupDisplays: cbMiniportHeap = 0x%08X, pCommon->cbMiniportHeap = 0x%08X, cbMiniportHeapMaxSize = 0x%08X\n",
     464            Log(("VBoxVideo::VBoxSetupDisplays: cbMiniportHeap = 0x%08X, pCommon->cbMiniportHeap = 0x%08X, cbMiniportHeapMaxSize = 0x%08X\n",
    465465                     cbMiniportHeap, pCommon->cbMiniportHeap, cbMiniportHeapMaxSize));
    466466
     
    511511        vboxQueryConfHGSMI (pCommon, VBOX_VBVA_CONF32_MONITOR_COUNT, &cDisplays);
    512512
    513         dprintf(("VBoxVideo::VBoxSetupDisplays: cDisplays = %d\n",
     513        Log(("VBoxVideo::VBoxSetupDisplays: cDisplays = %d\n",
    514514                 cDisplays));
    515515
     
    536536        VBoxFreeDisplaysHGSMI(pCommon);
    537537
    538     dprintf(("VBoxVideo::VBoxSetupDisplays: finished\n"));
     538    Log(("VBoxVideo::VBoxSetupDisplays: finished\n"));
    539539}
    540540
     
    621621
    622622#ifndef DEBUG_misha
    623     dprintf(("vboxUpdatePointerShape: cbData %d, %dx%d\n",
     623    Log(("vboxUpdatePointerShape: cbData %d, %dx%d\n",
    624624             cbData, pointerAttr->Width, pointerAttr->Height));
    625625#endif
     
    627627    if (cbData > cbLength - sizeof(VIDEO_POINTER_ATTRIBUTES))
    628628    {
    629         dprintf(("vboxUpdatePointerShape: calculated pointer data size is too big (%d bytes, limit %d)\n",
     629        Log(("vboxUpdatePointerShape: calculated pointer data size is too big (%d bytes, limit %d)\n",
    630630                 cbData, cbLength - sizeof(VIDEO_POINTER_ATTRIBUTES)));
    631631        return FALSE;
     
    644644                           &ctx);
    645645#ifndef DEBUG_misha
    646     dprintf(("VBoxVideo::vboxMousePointerShape: rc %d, i32Result = %d\n", rc, ctx.i32Result));
     646    Log(("VBoxVideo::vboxMousePointerShape: rc %d, i32Result = %d\n", rc, ctx.i32Result));
    647647#endif
    648648
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette