VirtualBox

Changeset 79938 in vbox


Ignore:
Timestamp:
Jul 23, 2019 6:09:28 PM (6 years ago)
Author:
vboxsync
Message:

3D: Build fix for the case when VBOXWDDMDISP_DEBUG_PRINT enables OutputDebugString

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispDbg.cpp

    r76553 r79938  
    110110
    111111DWORD g_VBoxVDbgCfgCreateSwapchainOnDdiOnce = 0;
    112 
    113 void vboxDispLogDbgPrintF(char * szString, ...)
    114 {
    115     char szBuffer[4096] = {0};
    116     va_list pArgList;
    117     va_start(pArgList, szString);
    118     vboxDispLogDbgFormatStringV(szBuffer, sizeof (szBuffer), szString, pArgList);
    119     va_end(pArgList);
    120 
    121     OutputDebugStringA(szBuffer);
    122 }
    123112
    124113VOID vboxVDbgDoPrintDmlCmd(const char* pszDesc, const char* pszCmd)
     
    805794    VBoxDispMpLoggerLog(szBuffer);
    806795}
     796
     797void vboxDispLogDbgPrintF(char * szString, ...)
     798{
     799    char szBuffer[4096] = { 0 };
     800    va_list pArgList;
     801    va_start(pArgList, szString);
     802    vboxDispLogDbgFormatStringV(szBuffer, sizeof(szBuffer), szString, pArgList);
     803    va_end(pArgList);
     804
     805    OutputDebugStringA(szBuffer);
     806}
    807807#endif
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispDbg.h

    r76563 r79938  
    3838/* generic debugging facilities & extra data checks */
    3939# define VBOXWDDMDISP_DEBUG
    40 # if defined(DEBUG_misha) || defined(DEBUG_leo)
    4140/* for some reason when debugging with VirtualKD, user-mode DbgPrint's are discarded
    4241 * the workaround so far is to pass the log info to the kernel driver and DbgPrint'ed from there,
    4342 * which is enabled by this define */
    4443//#  define VBOXWDDMDISP_DEBUG_PRINTDRV
    45 /* use OutputDebugString */
    46 //#  define VBOXWDDMDISP_DEBUG_PRINT
     44
     45/* Uncomment to use OutputDebugString */
     46//#define VBOXWDDMDISP_DEBUG_PRINT
     47
    4748/* disable shared resource creation with wine */
    4849//#  define VBOXWDDMDISP_DEBUG_NOSHARED
    4950
    5051//#  define VBOXWDDMDISP_DEBUG_PRINT_SHARED_CREATE
    51 
    5252//#  define VBOXWDDMDISP_DEBUG_TIMER
    53 # endif
    5453
    5554# ifndef IN_VBOXCRHGSMI
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