VirtualBox

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


Ignore:
Timestamp:
Oct 5, 2015 9:01:30 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
103082
Message:

VBoxService: Some more cleanups log statements & comments.

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

Legend:

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

    r58029 r58031  
    430430    if (s_enmLastStatus != VBoxGuestFacilityStatus_Failed)
    431431    {
    432         int rc = VbglR3ReportAdditionsStatus(VBoxGuestFacilityType_VBoxService,
    433                                              enmStatus, 0 /* Flags */);
     432        int rc = VbglR3ReportAdditionsStatus(VBoxGuestFacilityType_VBoxService, enmStatus, 0 /* Flags */);
    434433        if (RT_FAILURE(rc))
    435434        {
     
    620619                if (rc != VERR_SERVICE_DISABLED)
    621620                {
    622                     VGSvcError("Service '%s' failed to initialize: %Rrc\n",
    623                                      g_aServices[j].pDesc->pszName, rc);
     621                    VGSvcError("Service '%s' failed to initialize: %Rrc\n", g_aServices[j].pDesc->pszName, rc);
    624622                    VGSvcReportStatus(VBoxGuestFacilityStatus_Failed);
    625623                    return rc;
     
    817815          );
    818816
    819     VGSvcVerbose(3, "VBoxServiceMainWait: Received signal %d (rc=%d)\n", iSignal, rc);
     817    VGSvcVerbose(3, "VGSvcMainWait: Received signal %d (rc=%d)\n", iSignal, rc);
    820818#endif /* !RT_OS_WINDOWS */
    821819}
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceBalloon.cpp

    r58029 r58031  
    164164        return VINF_SUCCESS;
    165165
    166     VGSvcVerbose(3, "VBoxServiceBalloonSetUser: cNewChunks=%u g_cMemBalloonChunks=%u\n", cNewChunks, g_cMemBalloonChunks);
     166    VGSvcVerbose(3, "vgsvcBalloonSetUser: cNewChunks=%u g_cMemBalloonChunks=%u\n", cNewChunks, g_cMemBalloonChunks);
    167167    int rc = VINF_SUCCESS;
    168168    if (cNewChunks > g_cMemBalloonChunks)
     
    197197            }
    198198        }
    199         VGSvcVerbose(3, "VBoxServiceBalloonSetUser: inflation complete. chunks=%u rc=%d\n", i, rc);
     199        VGSvcVerbose(3, "vgsvcBalloonSetUser: inflation complete. chunks=%u rc=%d\n", i, rc);
    200200    }
    201201    else
     
    219219            else
    220220                break;
    221             VGSvcVerbose(3, "VBoxServiceBalloonSetUser: deflation complete. chunks=%u rc=%d\n", i, rc);
     221            VGSvcVerbose(3, "vgsvcBalloonSetUser: deflation complete. chunks=%u rc=%d\n", i, rc);
    222222        }
    223223    }
     
    232232static DECLCALLBACK(int) vgsvcBalloonInit(void)
    233233{
    234     VGSvcVerbose(3, "VBoxServiceBalloonInit\n");
     234    VGSvcVerbose(3, "vgsvcBalloonInit\n");
    235235
    236236    int rc = RTSemEventMultiCreate(&g_MemBalloonEvent);
     
    247247    if (RT_SUCCESS(rc))
    248248    {
    249         VGSvcVerbose(3, "MemBalloon: New balloon size %d MB (%s memory)\n",
    250                            cNewChunks, fHandleInR3 ? "R3" : "R0");
     249        VGSvcVerbose(3, "MemBalloon: New balloon size %d MB (%s memory)\n", cNewChunks, fHandleInR3 ? "R3" : "R0");
    251250        if (fHandleInR3)
    252251            rc = vgsvcBalloonSetUser(cNewChunks);
     
    303302    if (RT_FAILURE(rc))
    304303    {
    305         VGSvcVerbose(3, "VBoxServiceBalloonWorker: VbglR3CtlFilterMask failed with %Rrc\n", rc);
     304        VGSvcVerbose(3, "vgsvcBalloonInit: VbglR3CtlFilterMask failed with %Rrc\n", rc);
    306305        return rc;
    307306    }
     
    330329            if (RT_SUCCESS(rc))
    331330            {
    332                 VGSvcVerbose(3, "VBoxServiceBalloonWorker: new balloon size %d MB (%s memory)\n",
    333                                    cNewChunks, fHandleInR3 ? "R3" : "R0");
     331                VGSvcVerbose(3, "vgsvcBalloonInit: new balloon size %d MB (%s memory)\n", cNewChunks, fHandleInR3 ? "R3" : "R0");
    334332                if (fHandleInR3)
    335333                {
     
    337335                    if (RT_FAILURE(rc))
    338336                    {
    339                         VGSvcVerbose(3, "VBoxServiceBalloonWorker: failed to set balloon size %d MB (%s memory)\n",
    340                                     cNewChunks, fHandleInR3 ? "R3" : "R0");
     337                        VGSvcVerbose(3, "vgsvcBalloonInit: failed to set balloon size %d MB (%s memory)\n",
     338                                     cNewChunks, fHandleInR3 ? "R3" : "R0");
    341339                    }
    342340                    else
    343                         VGSvcVerbose(3, "VBoxServiceBalloonWorker: successfully set requested balloon size %d.\n", cNewChunks);
     341                        VGSvcVerbose(3, "vgsvcBalloonInit: successfully set requested balloon size %d.\n", cNewChunks);
    344342                }
    345343                else
     
    347345            }
    348346            else
    349                 VGSvcVerbose(3, "VBoxServiceBalloonWorker: VbglR3MemBalloonRefresh failed with %Rrc\n", rc);
     347                VGSvcVerbose(3, "vgsvcBalloonInit: VbglR3MemBalloonRefresh failed with %Rrc\n", rc);
    350348        }
    351349
     
    363361        if (rc2 != VERR_TIMEOUT && RT_FAILURE(rc2))
    364362        {
    365             VGSvcError("VBoxServiceBalloonWorker: RTSemEventMultiWait failed; rc2=%Rrc\n", rc2);
     363            VGSvcError("vgsvcBalloonInit: RTSemEventMultiWait failed; rc2=%Rrc\n", rc2);
    366364            rc = rc2;
    367365            break;
     
    372370    rc = VbglR3CtlFilterMask(0, VMMDEV_EVENT_BALLOON_CHANGE_REQUEST);
    373371    if (RT_FAILURE(rc))
    374         VGSvcVerbose(3, "VBoxServiceBalloonWorker: VbglR3CtlFilterMask failed with %Rrc\n", rc);
     372        VGSvcVerbose(3, "vgsvcBalloonInit: VbglR3CtlFilterMask failed with %Rrc\n", rc);
    375373
    376374    RTSemEventMultiDestroy(g_MemBalloonEvent);
    377375    g_MemBalloonEvent = NIL_RTSEMEVENTMULTI;
    378376
    379     VGSvcVerbose(3, "VBoxServiceBalloonWorker: finished mem balloon change request thread\n");
    380     return 0;
     377    VGSvcVerbose(3, "vgsvcBalloonInit: finished mem balloon change request thread\n");
     378    return VINF_SUCCESS;
    381379}
    382380
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlProcess.cpp

    r58029 r58031  
    968968#endif
    969969#ifdef DEBUG
    970     VGSvcVerbose(3, "VBoxServiceControlExecMakeFullPath: %s -> %s\n", pszPath, pszExpanded);
     970    VGSvcVerbose(3, "vgsvcGstCtrlProcessMakeFullPath: %s -> %s\n", pszPath, pszExpanded);
    971971#endif
    972972    return rc;
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceUtils.cpp

    r58029 r58031  
    243243
    244244/**
    245  * Helper for VBoxServiceGetFileVersion and attempts to read and parse
     245 * Helper for vgsvcUtilGetFileVersion and attempts to read and parse
    246246 * FileVersion.
    247247 *
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo-win.cpp

    r58029 r58031  
    513513 * @returns VBox status code.
    514514 * @param   ppaProcs    Where to return the process snapshot.  This must be
    515  *                      freed by calling VBoxServiceVMInfoWinProcessesFree.
     515 *                      freed by calling vgsvcVMInfoWinProcessesFree.
    516516 *
    517517 * @param   pcProcs     Where to store the returned process count.
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp

    r58029 r58031  
    424424    if (RT_SUCCESS(rc))
    425425        rc = VGSvcPropCacheUpdate(pCache, pszName, pszValue);
    426     if (rc == VINF_SUCCESS) /* VBoxServicePropCacheUpdate will also return VINF_NO_CHANGE. */
     426    if (rc == VINF_SUCCESS) /* VGSvcPropCacheUpdate will also return VINF_NO_CHANGE. */
    427427    {
    428428        /** @todo Combine updating flags w/ updating the actual value. */
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