VirtualBox

Changeset 98053 in vbox for trunk/src/VBox/Main/src-global


Ignore:
Timestamp:
Jan 11, 2023 11:15:13 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
155164
Message:

VBoxSDS: Reduced unnecessary logging.

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  
    352352        uint32_t const uPrevState = ASMAtomicXchgU32((uint32_t volatile *)&m_Status.dwCurrentState, dwState);
    353353        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));
    356356    }
    357357
     
    10311031                LogRelFunc(("VBoxSDS: new CComServiceModule::Init failed: %Rhrc\n", hrcExit));
    10321032
    1033             LogRelFunc(("VBoxSDS: deleting pServiceModule (%p)\n", pServiceModule));
    10341033            delete pServiceModule;
    10351034            pServiceModule = NULL;
  • trunk/src/VBox/Main/src-global/win/VirtualBoxSDSImpl.cpp

    r96803 r98053  
    266266STDMETHODIMP VirtualBoxSDS::RegisterVBoxSVC(IVBoxSVCRegistration *aVBoxSVC, LONG aPid, IUnknown **aExistingVirtualBox)
    267267{
    268     LogRel(("registerVBoxSVC: aVBoxSVC=%p aPid=%u (%#x)\n", (IVBoxSVCRegistration *)aVBoxSVC, aPid, aPid));
     268    LogRel(("registerVBoxSVC: aPid=%u (%#x)\n", aPid, aPid));
    269269
    270270    /*
     
    514514        hrc = E_INVALIDARG;
    515515    }
    516     LogRel2(("VirtualBoxSDS::registerVBoxSVC: returns %Rhrc aExistingVirtualBox=%p\n", hrc, (IUnknown *)aExistingVirtualBox));
     516    LogRel2(("VirtualBoxSDS::registerVBoxSVC: returns %Rhrc\n", hrc));
    517517    return hrc;
    518518}
     
    521521STDMETHODIMP VirtualBoxSDS::DeregisterVBoxSVC(IVBoxSVCRegistration *aVBoxSVC, LONG aPid)
    522522{
    523     LogRel(("deregisterVBoxSVC: aVBoxSVC=%p aPid=%u (%#x)\n", (IVBoxSVCRegistration *)aVBoxSVC, aPid, aPid));
     523    LogRel(("deregisterVBoxSVC: aPid=%u (%#x)\n", aPid, aPid));
    524524    HRESULT hrc;
    525525    if (RT_VALID_PTR(aVBoxSVC))
     
    543543                }
    544544                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"));
    547546                pUserData->i_unlock();
    548547                pUserData->i_release();
     
    957956                    }
    958957                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));
    960959            }
    961960            /* Zap the entry in case we assert and leave further up. */
     
    998997            DWORD dwExit = 0;
    999998            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,
    10021001                    iRevision, pUserData->m_iTheChosenOneRevision));
    10031002
     
    11151114
    11161115                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));
    11191118
    11201119                i_incrementClientCount();
     
    11641163                if (RT_SUCCESS(rc))
    11651164                {
    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));
    11671166
    11681167                    i_incrementClientCount();
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