Changeset 98053 in vbox for trunk/src/VBox/Main/src-global
- Timestamp:
- Jan 11, 2023 11:15:13 AM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 155164
- Location:
- trunk/src/VBox/Main/src-global/win
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-global/win/VBoxSDS.cpp
r96407 r98053 352 352 uint32_t const uPrevState = ASMAtomicXchgU32((uint32_t volatile *)&m_Status.dwCurrentState, dwState); 353 353 if (!::SetServiceStatus(m_hServiceStatus, &m_Status)) 354 LogRel(("Error: SetServiceStatus(% p, %u) failed: %u (uPrevState=%u)\n",355 m_hServiceStatus,dwState, GetLastError(), uPrevState));354 LogRel(("Error: SetServiceStatus(%u) failed: %u (uPrevState=%u)\n", 355 dwState, GetLastError(), uPrevState)); 356 356 } 357 357 … … 1031 1031 LogRelFunc(("VBoxSDS: new CComServiceModule::Init failed: %Rhrc\n", hrcExit)); 1032 1032 1033 LogRelFunc(("VBoxSDS: deleting pServiceModule (%p)\n", pServiceModule));1034 1033 delete pServiceModule; 1035 1034 pServiceModule = NULL; -
trunk/src/VBox/Main/src-global/win/VirtualBoxSDSImpl.cpp
r96803 r98053 266 266 STDMETHODIMP VirtualBoxSDS::RegisterVBoxSVC(IVBoxSVCRegistration *aVBoxSVC, LONG aPid, IUnknown **aExistingVirtualBox) 267 267 { 268 LogRel(("registerVBoxSVC: a VBoxSVC=%p aPid=%u (%#x)\n", (IVBoxSVCRegistration *)aVBoxSVC, aPid, aPid));268 LogRel(("registerVBoxSVC: aPid=%u (%#x)\n", aPid, aPid)); 269 269 270 270 /* … … 514 514 hrc = E_INVALIDARG; 515 515 } 516 LogRel2(("VirtualBoxSDS::registerVBoxSVC: returns %Rhrc aExistingVirtualBox=%p\n", hrc, (IUnknown *)aExistingVirtualBox));516 LogRel2(("VirtualBoxSDS::registerVBoxSVC: returns %Rhrc\n", hrc)); 517 517 return hrc; 518 518 } … … 521 521 STDMETHODIMP VirtualBoxSDS::DeregisterVBoxSVC(IVBoxSVCRegistration *aVBoxSVC, LONG aPid) 522 522 { 523 LogRel(("deregisterVBoxSVC: a VBoxSVC=%p aPid=%u (%#x)\n", (IVBoxSVCRegistration *)aVBoxSVC, aPid, aPid));523 LogRel(("deregisterVBoxSVC: aPid=%u (%#x)\n", aPid, aPid)); 524 524 HRESULT hrc; 525 525 if (RT_VALID_PTR(aVBoxSVC)) … … 543 543 } 544 544 else 545 LogRel(("deregisterVBoxSVC: not the choosen one (%p != %p)\n", 546 (IVBoxSVCRegistration *)aVBoxSVC, (IVBoxSVCRegistration *)pUserData->m_ptrTheChosenOne)); 545 LogRel(("deregisterVBoxSVC: not the chosen one\n")); 547 546 pUserData->i_unlock(); 548 547 pUserData->i_release(); … … 957 956 } 958 957 if (cRemoved != 1) 959 LogRel(("i_watcherThreadProc/#%u: Warning! cRemoved=%u pUserData=%p\n", pThis->iWatcher, cRemoved, pUserData));958 LogRel(("i_watcherThreadProc/#%u: Warning! cRemoved=%u\n", pThis->iWatcher, cRemoved)); 960 959 } 961 960 /* Zap the entry in case we assert and leave further up. */ … … 998 997 DWORD dwExit = 0; 999 998 GetExitCodeProcess(pThis->aHandles[iHandle], &dwExit); 1000 LogRel(("i_watcherThreadProc/#%u: % p/%s: PID %u/%#x termination detected: %d (%#x) [iRev=%u, cur %u]\n",1001 pThis->iWatcher, pUserData , pUserData->m_strUsername.c_str(), pid, pid, dwExit, dwExit,999 LogRel(("i_watcherThreadProc/#%u: %s: PID %u/%#x termination detected: %d (%#x) [iRev=%u, cur %u]\n", 1000 pThis->iWatcher, pUserData->m_strUsername.c_str(), pid, pid, dwExit, dwExit, 1002 1001 iRevision, pUserData->m_iTheChosenOneRevision)); 1003 1002 … … 1115 1114 1116 1115 BOOL fRc = SetEvent(pWatcher->aHandles[0]); 1117 AssertLogRelMsg(fRc, ("SetEvent( %p) failed: %u\n", pWatcher->aHandles[0], GetLastError()));1118 LogRel(("i_watchIt: Added %p/%p to watcher #%u: %RTbool\n", pUserData, hProcess, pWatcher->iWatcher, fRc));1116 AssertLogRelMsg(fRc, ("SetEvent() failed: %u\n", GetLastError())); 1117 LogRel(("i_watchIt: Added process to watcher #%u: %RTbool\n", pWatcher->iWatcher, fRc)); 1119 1118 1120 1119 i_incrementClientCount(); … … 1164 1163 if (RT_SUCCESS(rc)) 1165 1164 { 1166 LogRel(("i_watchIt: Created new watcher #%u for %p/%p\n", m_cWatchers, pUserData, hProcess));1165 LogRel(("i_watchIt: Created new watcher #%u\n", m_cWatchers)); 1167 1166 1168 1167 i_incrementClientCount();
Note:
See TracChangeset
for help on using the changeset viewer.