VirtualBox

Changeset 32772 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Sep 27, 2010 12:19:31 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66221
Message:

VBoxService: Logging (also get rid of some ambiguous lines).

Location:
trunk/src/VBox/Additions/common/VBoxService
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceBalloon.cpp

    r29543 r32772  
    376376        if (rc2 != VERR_TIMEOUT && RT_FAILURE(rc2))
    377377        {
    378             VBoxServiceError("RTSemEventMultiWait failed; rc2=%Rrc\n", rc2);
     378            VBoxServiceError("VBoxServiceBalloonWorker: RTSemEventMultiWait failed; rc2=%Rrc\n", rc2);
    379379            rc = rc2;
    380380            break;
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp

    r30960 r32772  
    241241        idxRegion++;
    242242    }
    243     VBoxServiceVerbose(3, "VbglR3RegisterSharedModule %s %s base=%p size=%x cregions=%d\n", pModule->Info.szModule, pModule->szFileVersion, pModule->Info.modBaseAddr, pModule->Info.modBaseSize, idxRegion);
     243    VBoxServiceVerbose(3, "VBoxServicePageSharingRegisterModule: VbglR3RegisterSharedModule %s %s base=%p size=%x cregions=%d\n", pModule->Info.szModule, pModule->szFileVersion, pModule->Info.modBaseAddr, pModule->Info.modBaseSize, idxRegion);
    244244#ifdef RT_ARCH_X86
    245245    int rc = VbglR3RegisterSharedModule(pModule->Info.szModule, pModule->szFileVersion, (RTGCPTR32)pModule->Info.modBaseAddr,
     
    252252//    AssertRC(rc);
    253253    if (RT_FAILURE(rc))
    254         VBoxServiceVerbose(3, "VbglR3RegisterSharedModule failed with %d\n", rc);
     254        VBoxServiceVerbose(3, "VBoxServicePageSharingRegisterModule: VbglR3RegisterSharedModule failed with %d\n", rc);
    255255
    256256end:
     
    352352    if (hSnapshot == INVALID_HANDLE_VALUE)
    353353    {
    354         VBoxServiceVerbose(3, "CreateToolhelp32Snapshot failed with %d\n", GetLastError());
     354        VBoxServiceVerbose(3, "VBoxServicePageSharingInspectGuest: CreateToolhelp32Snapshot failed with %d\n", GetLastError());
    355355        return;
    356356    }
     
    610610        if (rc != VERR_TIMEOUT && RT_FAILURE(rc))
    611611        {
    612             VBoxServiceError("RTSemEventMultiWait failed; rc=%Rrc\n", rc);
     612            VBoxServiceError("VBoxServicePageSharingWorker: RTSemEventMultiWait failed; rc=%Rrc\n", rc);
    613613            break;
    614614        }
     
    699699                rc = RTProcCreate(pszExeName, papszArgs, RTENV_DEFAULT, 0 /* normal child */, &hProcess);
    700700                if (RT_FAILURE(rc))
    701                     VBoxServiceError("RTProcCreate %s failed; rc=%Rrc\n", pszExeName, rc);
     701                    VBoxServiceError("VBoxServicePageSharingWorkerProcess: RTProcCreate %s failed; rc=%Rrc\n", pszExeName, rc);
    702702            }
    703703        }
     
    716716        if (rc != VERR_TIMEOUT && RT_FAILURE(rc))
    717717        {
    718             VBoxServiceError("RTSemEventMultiWait failed; rc=%Rrc\n", rc);
     718            VBoxServiceError("VBoxServicePageSharingWorkerProcess: RTSemEventMultiWait failed; rc=%Rrc\n", rc);
    719719            break;
    720720        }
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceStats.cpp

    r29345 r32772  
    170170/**
    171171 * Gathers VM statistics and reports them to the host.
    172  *
    173  * @returns
    174  * @param   oid                 .
    175172 */
    176173static void VBoxServiceVMStatsReport(void)
     
    237234        }
    238235        else
    239             VBoxServiceVerbose(3, "GetPerformanceInfo failed with %d\n", GetLastError());
     236            VBoxServiceVerbose(3, "VBoxServiceVMStatsReport: GetPerformanceInfo failed with %d\n", GetLastError());
    240237    }
    241238
     
    667664        if (rc2 != VERR_TIMEOUT && RT_FAILURE(rc2))
    668665        {
    669             VBoxServiceError("RTSemEventMultiWait failed; rc2=%Rrc\n", rc2);
     666            VBoxServiceError("VBoxServiceVMStatsWorker: RTSemEventMultiWait failed; rc2=%Rrc\n", rc2);
    670667            rc = rc2;
    671668            break;
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp

    r32647 r32772  
    441441        return;
    442442    if (SetSystemTimeAdjustment(0, TRUE /* Periodic adjustments disabled. */))
    443         VBoxServiceVerbose(3, "Windows Time Adjustment is now disabled.\n");
     443        VBoxServiceVerbose(3, "VBoxServiceTimeSyncCancelAdjust: Windows Time Adjustment is now disabled.\n");
    444444    else if (g_cTimeSyncErrors++ < 10)
    445         VBoxServiceError("SetSystemTimeAdjustment(,disable) failed, error=%u\n", GetLastError());
     445        VBoxServiceError("VBoxServiceTimeSyncCancelAdjust: SetSystemTimeAdjustment(,disable) failed, error=%u\n", GetLastError());
    446446#endif /* !RT_OS_WINDOWS */
    447447}
     
    482482    }
    483483    else if (g_cTimeSyncErrors++ < 10)
    484         VBoxServiceError("RTTimeSet(%RDtimespec) failed: %Rrc\n", &NewGuestTime, rc);
     484        VBoxServiceError("VBoxServiceTimeSyncSet: RTTimeSet(%RDtimespec) failed: %Rrc\n", &NewGuestTime, rc);
    485485}
    486486
     
    516516            {
    517517                if (g_cTimeSyncErrors++ < 10)
    518                     VBoxServiceError("VbglR3GetHostTime failed; rc2=%Rrc\n", rc2);
     518                    VBoxServiceError("VBoxServiceTimeSyncWorker: VbglR3GetHostTime failed; rc2=%Rrc\n", rc2);
    519519                break;
    520520            }
     
    537537                    if (idNewSession != g_idTimeSyncSession)
    538538                    {
    539                         VBoxServiceVerbose(3, "TimeSync: The VM session ID changed, forcing resync.\n");
     539                        VBoxServiceVerbose(3, "VBoxServiceTimeSyncWorker: The VM session ID changed, forcing resync.\n");
    540540                        TimeSyncSetThreshold = 0;
    541541                        g_idTimeSyncSession  = idNewSession;
     
    559559                if (g_cVerbosity >= 3)
    560560                {
    561                     VBoxServiceVerbose(3, "Host:    %s    (MinAdjust: %RU32 ms)\n",
     561                    VBoxServiceVerbose(3, "VBoxServiceTimeSyncWorker: Host:    %s    (MinAdjust: %RU32 ms)\n",
    562562                                       RTTimeToString(RTTimeExplode(&Time, &HostNow), sz, sizeof(sz)), MinAdjust);
    563                     VBoxServiceVerbose(3, "Guest: - %s => %RDtimespec drift\n",
     563                    VBoxServiceVerbose(3, "VBoxServiceTimeSyncWorker: Guest: - %s => %RDtimespec drift\n",
    564564                                       RTTimeToString(RTTimeExplode(&Time, &GuestNow), sz, sizeof(sz)),
    565565                                       &Drift);
     
    588588                break;
    589589            }
    590             VBoxServiceVerbose(3, "%RDtimespec: latency too high (%RDtimespec) sleeping 1s\n", GuestElapsed);
     590            VBoxServiceVerbose(3, "VBoxServiceTimeSyncWorker: %RDtimespec: latency too high (%RDtimespec) sleeping 1s\n", GuestElapsed);
    591591            RTThreadSleep(1000);
    592592        } while (--cTries > 0);
     
    608608        if (rc2 != VERR_TIMEOUT && RT_FAILURE(rc2))
    609609        {
    610             VBoxServiceError("RTSemEventMultiWait failed; rc2=%Rrc\n", rc2);
     610            VBoxServiceError("VBoxServiceTimeSyncWorker: RTSemEventMultiWait failed; rc2=%Rrc\n", rc2);
    611611            rc = rc2;
    612612            break;
     
    640640        {
    641641            DWORD dwErr = GetLastError();
    642             VBoxServiceError("Restoring token privileges (SE_SYSTEMTIME_NAME) failed with code %u!\n", dwErr);
     642            VBoxServiceError("VBoxServiceTimeSyncTerm: Restoring token privileges (SE_SYSTEMTIME_NAME) failed with code %u!\n", dwErr);
    643643        }
    644644        CloseHandle(g_hTokenProcess);
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