VirtualBox

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


Ignore:
Timestamp:
Nov 18, 2011 10:08:52 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74949
Message:

VBoxService: Logging.

File:
1 edited

Legend:

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

    r39313 r39361  
    278278    {
    279279#ifdef DEBUG
    280         VBoxServiceVerbose(3, "ControlExec: Start process szCmd=%s, uFlags=%u, szArgs=%s, szEnv=%s, szUser=%s, szPW=%s, uTimeout=%u\n",
     280        VBoxServiceVerbose(3, "Control: Start process szCmd=%s, uFlags=%u, szArgs=%s, szEnv=%s, szUser=%s, szPW=%s, uTimeout=%u\n",
    281281                           szCmd, uFlags, uNumArgs ? szArgs : "<None>", uNumEnvVars ? szEnv : "<None>", szUser, szPassword, uTimeLimitMS);
    282282#endif
     
    284284        int rc = VBoxServiceControlStartAllowed(&fAllowed);
    285285        if (RT_FAILURE(rc))
    286             VBoxServiceError("ControlExec: Error determining whether process can be started or not, rc=%Rrc\n", rc);
     286            VBoxServiceError("Control: Error determining whether process can be started or not, rc=%Rrc\n", rc);
    287287
    288288        if (   RT_SUCCESS(rc)
     
    319319    }
    320320    else
    321         VBoxServiceError("ControlExec: Failed to retrieve exec start command! Error: %Rrc\n", rc);
     321        VBoxServiceError("Control: Failed to retrieve exec start command! Error: %Rrc\n", rc);
    322322    return rc;
    323323}
     
    448448    if (RT_FAILURE(rc))
    449449    {
    450         VBoxServiceError("ControlExec: [PID %u]: Failed to retrieve exec input command! Error: %Rrc\n",
     450        VBoxServiceError("Control: [PID %u]: Failed to retrieve exec input command! Error: %Rrc\n",
    451451                         uPID, rc);
    452452    }
    453453    else if (cbSize >  cbMaxBufSize)
    454454    {
    455         VBoxServiceError("ControlExec: [PID %u]: Too much input received! cbSize=%u, cbMaxBufSize=%u\n",
     455        VBoxServiceError("Control: [PID %u]: Too much input received! cbSize=%u, cbMaxBufSize=%u\n",
    456456                         uPID, cbSize, cbMaxBufSize);
    457457        rc = VERR_INVALID_PARAMETER;
     
    466466        {
    467467            fPendingClose = true;
    468             VBoxServiceVerbose(4, "ControlExec: [PID %u]: Got last input block of size %u ...\n",
     468            VBoxServiceVerbose(4, "Control: [PID %u]: Got last input block of size %u ...\n",
    469469                               uPID, cbSize);
    470470        }
    471471
    472472        rc = VBoxServiceControlSetInput(uPID, fPendingClose, pabBuffer,
    473                                                   cbSize, &cbWritten);
    474         VBoxServiceVerbose(4, "ControlExec: [PID %u]: Written input, rc=%Rrc, uFlags=0x%x, fPendingClose=%d, cbSize=%u, cbWritten=%u\n",
     473                                        cbSize, &cbWritten);
     474        VBoxServiceVerbose(4, "Control: [PID %u]: Written input, rc=%Rrc, uFlags=0x%x, fPendingClose=%d, cbSize=%u, cbWritten=%u\n",
    475475                           uPID, rc, uFlags, fPendingClose, cbSize, cbWritten);
    476476        if (RT_SUCCESS(rc))
     
    504504    Assert(uStatus > INPUT_STS_UNDEFINED);
    505505
    506     VBoxServiceVerbose(3, "ControlExec: [PID %u]: Input processed, CID=%u, uStatus=%u, uFlags=0x%x, cbWritten=%u\n",
     506    VBoxServiceVerbose(3, "Control: [PID %u]: Input processed, CID=%u, uStatus=%u, uFlags=0x%x, cbWritten=%u\n",
    507507                       uPID, uContextID, uStatus, uFlags, cbWritten);
    508508
     
    514514
    515515    if (RT_FAILURE(rc))
    516         VBoxServiceError("ControlExec: [PID %u]: Failed to report input status! Error: %Rrc\n",
     516        VBoxServiceError("Control: [PID %u]: Failed to report input status! Error: %Rrc\n",
    517517                         uPID, rc);
    518518    return rc;
     
    546546                                                 pBuf, _64K /* cbSize */, &cbRead);
    547547            if (RT_SUCCESS(rc))
    548                 VBoxServiceVerbose(3, "ControlExec: [PID %u]: Got output, CID=%u, cbRead=%u, uHandle=%u, uFlags=%u\n",
     548                VBoxServiceVerbose(3, "Control: [PID %u]: Got output, CID=%u, cbRead=%u, uHandle=%u, uFlags=%u\n",
    549549                                   uPID, uContextID, cbRead, uHandleID, uFlags);
    550550            else
    551                 VBoxServiceError("ControlExec: [PID %u]: Failed to retrieve output, CID=%u, uHandle=%u, rc=%Rrc\n",
     551                VBoxServiceError("Control: [PID %u]: Failed to retrieve output, CID=%u, uHandle=%u, rc=%Rrc\n",
    552552                                 uPID, uContextID, uHandleID, rc);
    553553            /* Note: Since the context ID is unique the request *has* to be completed here,
     
    566566
    567567    if (RT_FAILURE(rc))
    568         VBoxServiceError("ControlExec: [PID %u]: Error handling output command! Error: %Rrc\n",
     568        VBoxServiceError("Control: [PID %u]: Error handling output command! Error: %Rrc\n",
    569569                         uPID, rc);
    570570    return rc;
     
    687687                    uProcsStopped++;
    688688                else
    689                     AssertMsgFailed(("ControlExec: Guest process neither started nor stopped!?\n"));
     689                    AssertMsgFailed(("Control: Guest process neither started nor stopped!?\n"));
    690690            }
    691691
    692             VBoxServiceVerbose(2, "ControlExec: Maximum served guest processes set to %u, running=%u, stopped=%u\n",
     692            VBoxServiceVerbose(2, "Control: Maximum served guest processes set to %u, running=%u, stopped=%u\n",
    693693                               g_GuestControlProcsMaxKept, uProcsRunning, uProcsStopped);
    694694
     
    696696            if (iProcsLeft < 0)
    697697            {
    698                 VBoxServiceVerbose(3, "ControlExec: Maximum running guest processes reached (%u)\n",
     698                VBoxServiceVerbose(3, "Control: Maximum running guest processes reached (%u)\n",
    699699                                   g_GuestControlProcsMaxKept);
    700700                fLimitReached = true;
     
    759759    if (RT_SUCCESS(rc))
    760760    {
    761         VBoxServiceVerbose(4, "ControlExec: Removing thread (PID: %u) from thread list\n",
     761        VBoxServiceVerbose(4, "Control: Removing thread (PID: %u) from thread list\n",
    762762                           pThread->uPID);
    763763        RTListNodeRemove(&pThread->Node);
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