Changeset 42478 in vbox
- Timestamp:
- Jul 31, 2012 1:20:37 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
-
include/VBox/log.h (modified) (2 diffs)
-
src/VBox/Main/include/GuestCtrlImplPrivate.h (modified) (1 diff)
-
src/VBox/Main/src-client/GuestCtrlImpl.cpp (modified) (1 diff)
-
src/VBox/Main/src-client/GuestCtrlPrivate.cpp (modified) (4 diffs)
-
src/VBox/Main/src-client/GuestDirectoryImpl.cpp (modified) (1 diff)
-
src/VBox/Main/src-client/GuestFileImpl.cpp (modified) (1 diff)
-
src/VBox/Main/src-client/GuestFsObjInfoImpl.cpp (modified) (1 diff)
-
src/VBox/Main/src-client/GuestProcessImpl.cpp (modified) (22 diffs)
-
src/VBox/Main/src-client/GuestSessionImpl.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/log.h
r40652 r42478 220 220 /** GMM group. */ 221 221 LOG_GROUP_GMM, 222 /** Guest control. */ 223 LOG_GROUP_GUEST_CONTROL, 222 224 /** GUI group. */ 223 225 LOG_GROUP_GUI, … … 473 475 "FTM", \ 474 476 "GMM", \ 477 "GUEST_CONTROL", \ 475 478 "GUI", \ 476 479 "GVMM", \ -
trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h
r42461 r42478 36 36 using namespace guestControl; 37 37 #endif 38 39 #define LOG_GROUP LOG_GROUP_GUEST_CONTROL 40 #include <VBox/log.h> 38 41 39 42 /** Maximum number of guest sessions a VM can have. */ -
trunk/src/VBox/Main/src-client/GuestCtrlImpl.cpp
r42461 r42478 26 26 27 27 #include "AutoCaller.h" 28 #include "Logging.h"29 28 30 29 #include <VBox/VMMDev.h> -
trunk/src/VBox/Main/src-client/GuestCtrlPrivate.cpp
r42461 r42478 25 25 #include <iprt/ctype.h> 26 26 #ifdef DEBUG 27 # include "Logging.h"28 27 # include <iprt/file.h> 29 28 #endif /* DEBUG */ … … 74 73 void GuestCtrlEvent::Destroy(void) 75 74 { 76 LogFlowThisFuncEnter();77 78 75 int rc = Cancel(); 79 76 AssertRC(rc); … … 84 81 hEventSem = NIL_RTSEMEVENT; 85 82 } 86 87 LogFlowThisFuncLeave();88 83 } 89 84 … … 114 109 if (RT_SUCCESS(rc)) 115 110 ASMAtomicWriteBool(&fCompleted, true); 111 112 LogFlowFuncLeaveRC(rc); 116 113 return rc; 117 114 } -
trunk/src/VBox/Main/src-client/GuestDirectoryImpl.cpp
r42095 r42478 22 22 *******************************************************************************/ 23 23 #include "GuestDirectoryImpl.h" 24 #include "GuestCtrlImplPrivate.h" 24 25 25 26 #include "Global.h" 26 27 #include "AutoCaller.h" 27 #include "Logging.h"28 28 29 29 #include <VBox/com/array.h> -
trunk/src/VBox/Main/src-client/GuestFileImpl.cpp
r42095 r42478 22 22 *******************************************************************************/ 23 23 #include "GuestFileImpl.h" 24 #include "GuestCtrlImplPrivate.h" 24 25 25 26 #include "Global.h" 26 27 #include "AutoCaller.h" 27 #include "Logging.h"28 28 29 29 #include <VBox/com/array.h> -
trunk/src/VBox/Main/src-client/GuestFsObjInfoImpl.cpp
r42095 r42478 22 22 *******************************************************************************/ 23 23 #include "GuestFsObjInfoImpl.h" 24 #include "GuestCtrlImplPrivate.h" 24 25 25 26 #include "Global.h" 26 27 #include "AutoCaller.h" 27 #include "Logging.h"28 28 29 29 #include <VBox/com/array.h> -
trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
r42461 r42478 23 23 #include "GuestProcessImpl.h" 24 24 #include "GuestSessionImpl.h" 25 #include "GuestCtrlImplPrivate.h" 25 26 #include "ConsoleImpl.h" 26 27 27 28 #include "Global.h" 28 29 #include "AutoCaller.h" 29 #include "Logging.h"30 30 #include "VMMDev.h" 31 31 … … 137 137 mData.mParent->processClose(this); 138 138 139 LogFlow FuncLeave();139 LogFlowThisFuncLeave(); 140 140 #endif 141 141 } … … 355 355 *puContextID = uNewContextID; 356 356 357 LogFlow Func(("Added new callback (Session: %RU32, Process: %RU32, Count=%RU32) CID=%RU32\n",357 LogFlowThisFunc(("Added new callback (Session: %RU32, Process: %RU32, Count=%RU32) CID=%RU32\n", 358 358 uSessionID, mData.mProcessID, mData.mNextContextID, uNewContextID)); 359 359 } … … 365 365 { 366 366 #ifdef DEBUG 367 LogFlow Func(("uPID=%RU32, uContextID=%RU32, uFunction=%RU32, pvData=%p, cbData=%RU32\n",367 LogFlowThisFunc(("uPID=%RU32, uContextID=%RU32, uFunction=%RU32, pvData=%p, cbData=%RU32\n", 368 368 mData.mPID, uContextID, uFunction, pvData, cbData)); 369 369 #endif … … 387 387 AssertPtr(pCallback); 388 388 #ifdef DEBUG 389 LogFlow Func(("pCallback=%p\n", pCallback));389 LogFlowThisFunc(("pCallback=%p\n", pCallback)); 390 390 #endif 391 391 } … … 527 527 AssertPtrReturn(pData, VERR_INVALID_POINTER); 528 528 529 LogFlow Func(("uPID=%RU32, pCallback=%p, pData=%p\n", mData.mPID, pCallback, pData));529 LogFlowThisFunc(("uPID=%RU32, pCallback=%p, pData=%p\n", mData.mPID, pCallback, pData)); 530 530 531 531 mData.mStatus = ProcessStatus_Down; … … 555 555 AssertPtrReturn(pData, VERR_INVALID_POINTER); 556 556 557 LogFlow Func(("uPID=%RU32, uStatus=%RU32, uFlags=%RU32, cbProcessed=%RU32, pCallback=%p, pData=%p\n",557 LogFlowThisFunc(("uPID=%RU32, uStatus=%RU32, uFlags=%RU32, cbProcessed=%RU32, pCallback=%p, pData=%p\n", 558 558 mData.mPID, pData->u32Status, pData->u32Flags, pData->cbProcessed, pCallback, pData)); 559 559 … … 590 590 AssertPtrReturn(pData, VERR_INVALID_POINTER); 591 591 592 LogFlow Func(("uPID=%RU32, uStatus=%RU32, uFlags=%RU32, pCallback=%p, pData=%p\n",592 LogFlowThisFunc(("uPID=%RU32, uStatus=%RU32, uFlags=%RU32, pCallback=%p, pData=%p\n", 593 593 pData->u32PID, pData->u32Status, pData->u32Flags, pCallback, pData)); 594 594 … … 750 750 } 751 751 752 LogFlowFunc(("Got rc=%Rrc, waitResult=%d\n", 753 rc, waitRes)); 752 LogFlowThisFunc(("Got rc=%Rrc, waitResult=%d\n", rc, waitRes)); 754 753 755 754 /* … … 775 774 AssertPtrReturn(pData, VERR_INVALID_POINTER); 776 775 777 LogFlow Func(("uPID=%RU32, uHandle=%RU32, uFlags=%RU32, pvData=%p, cbData=%RU32, pCallback=%p, pData=%p\n",776 LogFlowThisFunc(("uPID=%RU32, uHandle=%RU32, uFlags=%RU32, pvData=%p, cbData=%RU32, pCallback=%p, pData=%p\n", 778 777 mData.mPID, pData->u32HandleId, pData->u32Flags, pData->pvData, pData->cbData, pCallback, pData)); 779 778 … … 828 827 BYTE *pbData, size_t cbData, size_t *pcbRead) 829 828 { 830 LogFlow Func(("uPID=%RU32, uHandle=%RU32, uSize=%RU32, uTimeoutMS=%RU32, pbData=%p, cbData=%RU32\n",829 LogFlowThisFunc(("uPID=%RU32, uHandle=%RU32, uSize=%RU32, uTimeoutMS=%RU32, pbData=%p, cbData=%RU32\n", 831 830 mData.mPID, uHandle, uSize, uTimeoutMS, pbData, cbData)); 832 831 AssertReturn(uSize, VERR_INVALID_PARAMETER); … … 871 870 * Note: Be sure not keeping a AutoRead/WriteLock here. 872 871 */ 873 LogFlow Func(("Waiting for callback (%RU32ms) ...\n", uTimeoutMS));872 LogFlowThisFunc(("Waiting for callback (%RU32ms) ...\n", uTimeoutMS)); 874 873 rc = pCallbackRead->Wait(uTimeoutMS); 875 874 if (RT_SUCCESS(rc)) /* Wait was successful, check for supplied information. */ 876 875 { 877 876 rc = pCallbackRead->GetResultCode(); 878 LogFlow Func(("Callback returned rc=%Rrc, cbData=%RU32\n", rc, pCallbackRead->GetPayloadSize()));877 LogFlowThisFunc(("Callback returned rc=%Rrc, cbData=%RU32\n", rc, pCallbackRead->GetPayloadSize())); 879 878 880 879 if (RT_SUCCESS(rc)) … … 918 917 AssertPtr(pVMMDev); 919 918 920 LogFlow Func(("uFunction=%RU32, uParms=%RU32\n", uFunction, uParms));919 LogFlowThisFunc(("uFunction=%RU32, uParms=%RU32\n", uFunction, uParms)); 921 920 int rc = pVMMDev->hgcmHostCall("VBoxGuestControlSvc", uFunction, uParms, paParms); 922 921 if (RT_FAILURE(rc)) … … 940 939 int GuestProcess::setErrorInternal(int rc, const Utf8Str &strMessage) 941 940 { 942 LogFlow Func(("rc=%Rrc, strMsg=%s\n", rc, strMessage.c_str()));941 LogFlowThisFunc(("rc=%Rrc, strMsg=%s\n", rc, strMessage.c_str())); 943 942 944 943 Assert(RT_FAILURE(rc)); … … 971 970 int GuestProcess::signalWaiters(ProcessWaitResult_T enmWaitResult) 972 971 { 973 LogFlow Func(("enmWaitResult=%d, mWaitCount=%RU32, mWaitEvent=%p\n",972 LogFlowThisFunc(("enmWaitResult=%d, mWaitCount=%RU32, mWaitEvent=%p\n", 974 973 enmWaitResult, mData.mWaitCount, mData.mWaitEvent)); 975 974 … … 985 984 int GuestProcess::startProcess(void) 986 985 { 987 LogFlow Func(("aCmd=%s, aTimeoutMS=%RU32, fFlags=%x\n",986 LogFlowThisFunc(("aCmd=%s, aTimeoutMS=%RU32, fFlags=%x\n", 988 987 mData.mProcess.mCommand.c_str(), mData.mProcess.mTimeoutMS, mData.mProcess.mFlags)); 989 988 … … 1081 1080 * Note: Be sure not keeping a AutoRead/WriteLock here. 1082 1081 */ 1083 LogFlow Func(("Waiting for callback (%RU32ms) ...\n", uTimeoutMS));1082 LogFlowThisFunc(("Waiting for callback (%RU32ms) ...\n", uTimeoutMS)); 1084 1083 rc = pCallbackStart->Wait(uTimeoutMS); 1085 1084 if (RT_SUCCESS(rc)) /* Wait was successful, check for supplied information. */ 1086 1085 { 1087 1086 rc = pCallbackStart->GetResultCode(); 1088 LogFlow Func(("Callback returned rc=%Rrc\n", rc));1087 LogFlowThisFunc(("Callback returned rc=%Rrc\n", rc)); 1089 1088 } 1090 1089 else … … 1157 1156 return VERR_NOT_SUPPORTED; 1158 1157 1159 LogFlow FuncLeave();1158 LogFlowThisFuncLeave(); 1160 1159 return VERR_NOT_IMPLEMENTED; 1161 1160 } … … 1167 1166 AssertReturn(fWaitFlags, VERR_INVALID_PARAMETER); 1168 1167 1169 LogFlow Func(("fWaitFlags=%x, uTimeoutMS=%RU32, mStatus=%RU32, mWaitCount=%RU32, mWaitEvent=%p\n",1168 LogFlowThisFunc(("fWaitFlags=%x, uTimeoutMS=%RU32, mStatus=%RU32, mWaitCount=%RU32, mWaitEvent=%p\n", 1170 1169 fWaitFlags, uTimeoutMS, mData.mStatus, mData.mWaitCount, mData.mWaitEvent)); 1171 1170 … … 1267 1266 } 1268 1267 1269 LogFlow Func(("waitResult=%ld, waitRC=%Rrc\n", waitRes.mResult, waitRes.mRC));1268 LogFlowThisFunc(("waitResult=%ld, waitRC=%Rrc\n", waitRes.mResult, waitRes.mRC)); 1270 1269 1271 1270 /* No waiting needed? Return immediately. */ … … 1441 1440 int GuestProcess::writeData(ULONG uHandle, const BYTE *pbData, size_t cbData, ULONG uTimeoutMS, ULONG *puWritten) 1442 1441 { 1443 LogFlow Func(("uPID=%RU32, uHandle=%RU32, pbData=%p, cbData=%RU32, uTimeoutMS=%RU32, puWritten=%p\n",1442 LogFlowThisFunc(("uPID=%RU32, uHandle=%RU32, pbData=%p, cbData=%RU32, uTimeoutMS=%RU32, puWritten=%p\n", 1444 1443 mData.mPID, uHandle, pbData, cbData, uTimeoutMS, puWritten)); 1445 1444 AssertPtrReturn(pbData, VERR_INVALID_POINTER); … … 1447 1446 /* Rest is optional. */ 1448 1447 1449 LogFlow FuncLeave();1448 LogFlowThisFuncLeave(); 1450 1449 return 0; 1451 1450 } -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r42461 r42478 23 23 #include "GuestImpl.h" 24 24 #include "GuestSessionImpl.h" 25 #include "GuestCtrlImplPrivate.h" 25 26 26 27 #include "Global.h" 27 28 #include "AutoCaller.h" 28 #include "Logging.h"29 29 30 30 #include <iprt/env.h>
Note:
See TracChangeset
for help on using the changeset viewer.

