VirtualBox

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


Ignore:
Timestamp:
Sep 30, 2010 12:42:58 PM (14 years ago)
Author:
vboxsync
Message:

Logging.

File:
1 edited

Legend:

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

    r32772 r32841  
    165165    if (RT_FAILURE(rc))
    166166    {
    167         VBoxServiceError("Failed to connect to the guest property service! Error: %Rrc\n", rc);
     167        VBoxServiceError("VBoxServiceTimeSyncPreInit: Failed to connect to the guest property service! Error: %Rrc\n", rc);
    168168    }
    169169    else
     
    306306                    DWORD dwErr = GetLastError();
    307307                    rc = RTErrConvertFromWin32(dwErr);
    308                     VBoxServiceError("Adjusting token privileges (SE_SYSTEMTIME_NAME) failed with status code %u/%Rrc!\n", dwErr, rc);
     308                    VBoxServiceError("VBoxServiceTimeSyncInit: Adjusting token privileges (SE_SYSTEMTIME_NAME) failed with status code %u/%Rrc!\n", dwErr, rc);
    309309                }
    310310            }
     
    313313                DWORD dwErr = GetLastError();
    314314                rc = RTErrConvertFromWin32(dwErr);
    315                 VBoxServiceError("Looking up token privileges (SE_SYSTEMTIME_NAME) failed with status code %u/%Rrc!\n", dwErr, rc);
     315                VBoxServiceError("VBoxServiceTimeSyncInit: Looking up token privileges (SE_SYSTEMTIME_NAME) failed with status code %u/%Rrc!\n", dwErr, rc);
    316316            }
    317317            if (RT_FAILURE(rc))
     
    325325            DWORD dwErr = GetLastError();
    326326            rc = RTErrConvertFromWin32(dwErr);
    327             VBoxServiceError("Opening process token (SE_SYSTEMTIME_NAME) failed with status code %u/%Rrc!\n", dwErr, rc);
     327            VBoxServiceError("VBoxServiceTimeSyncInit: Opening process token (SE_SYSTEMTIME_NAME) failed with status code %u/%Rrc!\n", dwErr, rc);
    328328            g_hTokenProcess = NULL;
    329329        }
     
    331331
    332332    if (GetSystemTimeAdjustment(&g_dwWinTimeAdjustment, &g_dwWinTimeIncrement, &g_bWinTimeAdjustmentDisabled))
    333         VBoxServiceVerbose(3, "Windows time adjustment: Initially %ld (100ns) units per %ld (100 ns) units interval, disabled=%d\n",
     333        VBoxServiceVerbose(3, "VBoxServiceTimeSyncInit: Initially %ld (100ns) units per %ld (100 ns) units interval, disabled=%d\n",
    334334                           g_dwWinTimeAdjustment, g_dwWinTimeIncrement, g_bWinTimeAdjustmentDisabled ? 1 : 0);
    335335    else
     
    337337        DWORD dwErr = GetLastError();
    338338        rc = RTErrConvertFromWin32(dwErr);
    339         VBoxServiceError("Could not get time adjustment values! Last error: %ld!\n", dwErr);
     339        VBoxServiceError("VBoxServiceTimeSyncInit: Could not get time adjustment values! Last error: %ld!\n", dwErr);
    340340    }
    341341#endif /* RT_OS_WINDOWS */
     
    390390        }
    391391
    392         VBoxServiceVerbose(3, "Windows time adjustment: Drift=%lldms\n", RTTimeSpecGetMilli(pDrift));
    393         VBoxServiceVerbose(3, "Windows time adjustment: OrgTA=%ld, CurTA=%ld, NewTA=%ld, DiffNew=%ld, DiffMax=%ld\n",
     392        VBoxServiceVerbose(3, "VBoxServiceTimeSyncAdjust: Drift=%lldms\n", RTTimeSpecGetMilli(pDrift));
     393        VBoxServiceVerbose(3, "VBoxServiceTimeSyncAdjust: OrgTA=%ld, CurTA=%ld, NewTA=%ld, DiffNew=%ld, DiffMax=%ld\n",
    394394                           g_dwWinTimeAdjustment, dwWinTimeAdjustment, dwWinNewTimeAdjustment, dwDiffNew, dwDiffMax);
    395395        if (SetSystemTimeAdjustment(dwWinNewTimeAdjustment, FALSE /* Periodic adjustments enabled. */))
     
    400400
    401401        if (g_cTimeSyncErrors++ < 10)
    402              VBoxServiceError("SetSystemTimeAdjustment failed, error=%u\n", GetLastError());
     402             VBoxServiceError("VBoxServiceTimeSyncAdjust: SetSystemTimeAdjustment failed, error=%u\n", GetLastError());
    403403    }
    404404    else if (g_cTimeSyncErrors++ < 10)
    405         VBoxServiceError("GetSystemTimeAdjustment failed, error=%ld\n", GetLastError());
     405        VBoxServiceError("VBoxServiceTimeSyncAdjust: GetSystemTimeAdjustment failed, error=%ld\n", GetLastError());
    406406
    407407#elif defined(RT_OS_OS2)
     
    417417    {
    418418        if (g_cVerbosity >= 1)
    419             VBoxServiceVerbose(1, "adjtime by %RDtimespec\n", pDrift);
     419            VBoxServiceVerbose(1, "VBoxServiceTimeSyncAdjust: adjtime by %RDtimespec\n", pDrift);
    420420        g_cTimeSyncErrors = 0;
    421421        return true;
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