Changeset 32841 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Sep 30, 2010 12:42:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp
r32772 r32841 165 165 if (RT_FAILURE(rc)) 166 166 { 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); 168 168 } 169 169 else … … 306 306 DWORD dwErr = GetLastError(); 307 307 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); 309 309 } 310 310 } … … 313 313 DWORD dwErr = GetLastError(); 314 314 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); 316 316 } 317 317 if (RT_FAILURE(rc)) … … 325 325 DWORD dwErr = GetLastError(); 326 326 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); 328 328 g_hTokenProcess = NULL; 329 329 } … … 331 331 332 332 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", 334 334 g_dwWinTimeAdjustment, g_dwWinTimeIncrement, g_bWinTimeAdjustmentDisabled ? 1 : 0); 335 335 else … … 337 337 DWORD dwErr = GetLastError(); 338 338 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); 340 340 } 341 341 #endif /* RT_OS_WINDOWS */ … … 390 390 } 391 391 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", 394 394 g_dwWinTimeAdjustment, dwWinTimeAdjustment, dwWinNewTimeAdjustment, dwDiffNew, dwDiffMax); 395 395 if (SetSystemTimeAdjustment(dwWinNewTimeAdjustment, FALSE /* Periodic adjustments enabled. */)) … … 400 400 401 401 if (g_cTimeSyncErrors++ < 10) 402 VBoxServiceError(" SetSystemTimeAdjustment failed, error=%u\n", GetLastError());402 VBoxServiceError("VBoxServiceTimeSyncAdjust: SetSystemTimeAdjustment failed, error=%u\n", GetLastError()); 403 403 } 404 404 else if (g_cTimeSyncErrors++ < 10) 405 VBoxServiceError(" GetSystemTimeAdjustment failed, error=%ld\n", GetLastError());405 VBoxServiceError("VBoxServiceTimeSyncAdjust: GetSystemTimeAdjustment failed, error=%ld\n", GetLastError()); 406 406 407 407 #elif defined(RT_OS_OS2) … … 417 417 { 418 418 if (g_cVerbosity >= 1) 419 VBoxServiceVerbose(1, " adjtime by %RDtimespec\n", pDrift);419 VBoxServiceVerbose(1, "VBoxServiceTimeSyncAdjust: adjtime by %RDtimespec\n", pDrift); 420 420 g_cTimeSyncErrors = 0; 421 421 return true;
Note:
See TracChangeset
for help on using the changeset viewer.