Changeset 39361 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Nov 18, 2011 10:08:52 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 74949
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp
r39313 r39361 278 278 { 279 279 #ifdef DEBUG 280 VBoxServiceVerbose(3, "Control Exec: 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", 281 281 szCmd, uFlags, uNumArgs ? szArgs : "<None>", uNumEnvVars ? szEnv : "<None>", szUser, szPassword, uTimeLimitMS); 282 282 #endif … … 284 284 int rc = VBoxServiceControlStartAllowed(&fAllowed); 285 285 if (RT_FAILURE(rc)) 286 VBoxServiceError("Control Exec: 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); 287 287 288 288 if ( RT_SUCCESS(rc) … … 319 319 } 320 320 else 321 VBoxServiceError("Control Exec: Failed to retrieve exec start command! Error: %Rrc\n", rc);321 VBoxServiceError("Control: Failed to retrieve exec start command! Error: %Rrc\n", rc); 322 322 return rc; 323 323 } … … 448 448 if (RT_FAILURE(rc)) 449 449 { 450 VBoxServiceError("Control Exec: [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", 451 451 uPID, rc); 452 452 } 453 453 else if (cbSize > cbMaxBufSize) 454 454 { 455 VBoxServiceError("Control Exec: [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", 456 456 uPID, cbSize, cbMaxBufSize); 457 457 rc = VERR_INVALID_PARAMETER; … … 466 466 { 467 467 fPendingClose = true; 468 VBoxServiceVerbose(4, "Control Exec: [PID %u]: Got last input block of size %u ...\n",468 VBoxServiceVerbose(4, "Control: [PID %u]: Got last input block of size %u ...\n", 469 469 uPID, cbSize); 470 470 } 471 471 472 472 rc = VBoxServiceControlSetInput(uPID, fPendingClose, pabBuffer, 473 474 VBoxServiceVerbose(4, "Control Exec: [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", 475 475 uPID, rc, uFlags, fPendingClose, cbSize, cbWritten); 476 476 if (RT_SUCCESS(rc)) … … 504 504 Assert(uStatus > INPUT_STS_UNDEFINED); 505 505 506 VBoxServiceVerbose(3, "Control Exec: [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", 507 507 uPID, uContextID, uStatus, uFlags, cbWritten); 508 508 … … 514 514 515 515 if (RT_FAILURE(rc)) 516 VBoxServiceError("Control Exec: [PID %u]: Failed to report input status! Error: %Rrc\n",516 VBoxServiceError("Control: [PID %u]: Failed to report input status! Error: %Rrc\n", 517 517 uPID, rc); 518 518 return rc; … … 546 546 pBuf, _64K /* cbSize */, &cbRead); 547 547 if (RT_SUCCESS(rc)) 548 VBoxServiceVerbose(3, "Control Exec: [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", 549 549 uPID, uContextID, cbRead, uHandleID, uFlags); 550 550 else 551 VBoxServiceError("Control Exec: [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", 552 552 uPID, uContextID, uHandleID, rc); 553 553 /* Note: Since the context ID is unique the request *has* to be completed here, … … 566 566 567 567 if (RT_FAILURE(rc)) 568 VBoxServiceError("Control Exec: [PID %u]: Error handling output command! Error: %Rrc\n",568 VBoxServiceError("Control: [PID %u]: Error handling output command! Error: %Rrc\n", 569 569 uPID, rc); 570 570 return rc; … … 687 687 uProcsStopped++; 688 688 else 689 AssertMsgFailed(("Control Exec: Guest process neither started nor stopped!?\n"));689 AssertMsgFailed(("Control: Guest process neither started nor stopped!?\n")); 690 690 } 691 691 692 VBoxServiceVerbose(2, "Control Exec: 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", 693 693 g_GuestControlProcsMaxKept, uProcsRunning, uProcsStopped); 694 694 … … 696 696 if (iProcsLeft < 0) 697 697 { 698 VBoxServiceVerbose(3, "Control Exec: Maximum running guest processes reached (%u)\n",698 VBoxServiceVerbose(3, "Control: Maximum running guest processes reached (%u)\n", 699 699 g_GuestControlProcsMaxKept); 700 700 fLimitReached = true; … … 759 759 if (RT_SUCCESS(rc)) 760 760 { 761 VBoxServiceVerbose(4, "Control Exec: Removing thread (PID: %u) from thread list\n",761 VBoxServiceVerbose(4, "Control: Removing thread (PID: %u) from thread list\n", 762 762 pThread->uPID); 763 763 RTListNodeRemove(&pThread->Node);
Note:
See TracChangeset
for help on using the changeset viewer.