Changeset 63019 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispMpLogger.cpp
- Timestamp:
- Aug 4, 2016 11:41:09 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispMpLogger.cpp
r62679 r63019 103 103 } 104 104 105 VBOXDISPMPLOGGER_DECL(int) VBoxDispMpLoggerInit( )105 VBOXDISPMPLOGGER_DECL(int) VBoxDispMpLoggerInit(void) 106 106 { 107 107 PVBOXDISPMPLOGGER pLogger = vboxDispMpLoggerGet(); … … 111 111 } 112 112 113 VBOXDISPMPLOGGER_DECL(int) VBoxDispMpLoggerTerm( )113 VBOXDISPMPLOGGER_DECL(int) VBoxDispMpLoggerTerm(void) 114 114 { 115 115 if (ASMAtomicCmpXchgU32((volatile uint32_t *)&g_VBoxDispMpLogger.enmState, VBOXDISPMPLOGGER_STATE_UNINITIALIZING, VBOXDISPMPLOGGER_STATE_INITIALIZED)) … … 126 126 } 127 127 128 VBOXDISPMPLOGGER_DECL(void) VBoxDispMpLoggerLog(c har *szString)128 VBOXDISPMPLOGGER_DECL(void) VBoxDispMpLoggerLog(const char *pszString) 129 129 { 130 130 PVBOXDISPMPLOGGER pLogger = vboxDispMpLoggerGet(); … … 136 136 if (hr == S_OK) 137 137 { 138 uint32_t cbString = (uint32_t)strlen( szString) + 1;138 uint32_t cbString = (uint32_t)strlen(pszString) + 1; 139 139 uint32_t cbCmd = RT_OFFSETOF(VBOXDISPIFESCAPE_DBGPRINT, aStringBuf[cbString]); 140 140 PVBOXDISPIFESCAPE_DBGPRINT pCmd = (PVBOXDISPIFESCAPE_DBGPRINT)RTMemAllocZ(cbCmd); … … 142 142 { 143 143 pCmd->EscapeHdr.escapeCode = VBOXESC_DBGPRINT; 144 memcpy(pCmd->aStringBuf, szString, cbString);144 memcpy(pCmd->aStringBuf, pszString, cbString); 145 145 146 146 D3DKMT_ESCAPE EscapeData = {0}; … … 173 173 } 174 174 175 VBOXDISPMPLOGGER_DECL(void) VBoxDispMpLoggerLogF(c har *szString, ...)175 VBOXDISPMPLOGGER_DECL(void) VBoxDispMpLoggerLogF(const char *pszString, ...) 176 176 { 177 177 PVBOXDISPMPLOGGER pLogger = vboxDispMpLoggerGet(); … … 181 181 char szBuffer[4096] = {0}; 182 182 va_list pArgList; 183 va_start(pArgList, szString);184 _vsnprintf(szBuffer, sizeof(szBuffer) / sizeof(szBuffer[0]), szString, pArgList);183 va_start(pArgList, pszString); 184 _vsnprintf(szBuffer, sizeof(szBuffer) / sizeof(szBuffer[0]), pszString, pArgList); 185 185 va_end(pArgList); 186 186
Note:
See TracChangeset
for help on using the changeset viewer.