Changeset 15166 in vbox
- Timestamp:
- Dec 9, 2008 1:38:57 PM (16 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestProperties/service.cpp
r14461 r15166 275 275 { 276 276 AssertLogRelReturnVoid(VALID_PTR(pvService)); 277 LogFlowFunc (("pvService=%p, callHandle=%p, u32ClientID=%u, pvClient=%p, u32Function=%u, cParms=%u, paParms=%p\n", pvService, callHandle, u32ClientID, pvClient, u32Function, cParms, paParms)); 277 278 SELF *pSelf = reinterpret_cast<SELF *>(pvService); 278 279 pSelf->call(callHandle, u32ClientID, pvClient, u32Function, cParms, paParms); 280 LogFlowFunc (("returning\n")); 279 281 } 280 282 … … 289 291 { 290 292 AssertLogRelReturn(VALID_PTR(pvService), VERR_INVALID_PARAMETER); 293 LogFlowFunc (("pvService=%p, u32Function=%u, cParms=%u, paParms=%p\n", pvService, u32Function, cParms, paParms)); 291 294 SELF *pSelf = reinterpret_cast<SELF *>(pvService); 292 return pSelf->hostCall(u32Function, cParms, paParms); 295 int rc = pSelf->hostCall(u32Function, cParms, paParms); 296 LogFlowFunc (("rc=%Rrc\n", rc)); 297 return rc; 293 298 } 294 299 … … 982 987 983 988 AssertPtrReturnVoid(pszProperty); 989 LogFlowThisFunc (("pszProperty=%s, u64Timestamp=%llu\n", pszProperty, u64Timestamp)); 984 990 /* Ensure that our timestamp is different to the last one. */ 985 991 if ( !mGuestNotifications.empty() … … 1085 1091 if (RT_FAILURE(rc)) /* clean up if we failed somewhere */ 1086 1092 { 1093 LogThisFunc (("Failed, freeing allocated strings.\n")); 1087 1094 RTStrFree(pszName); 1088 1095 RTStrFree(pszValue); 1089 1096 RTStrFree(pszFlags); 1090 1097 } 1098 LogFlowThisFunc (("returning\n")); 1091 1099 #endif /* VBOX_GUEST_PROP_TEST_NOTHREAD not defined */ 1092 1100 } … … 1101 1109 * @thread request thread 1102 1110 */ 1111 /* static */ 1103 1112 int Service::reqNotify(PFNHGCMSVCEXT pfnCallback, void *pvData, 1104 1113 char *pszName, char *pszValue, uint32_t u32TimeHigh, 1105 1114 uint32_t u32TimeLow, char *pszFlags) 1106 1115 { 1116 LogFlowFunc (("pfnCallback=%p, pvData=%p, pszName=%s, pszValue=%s, u32TimeHigh=%u, u32TimeLow=%u, pszFlags=%s\n", pfnCallback, pvData, pszName, pszValue, u32TimeHigh, u32TimeLow, pszFlags)); 1107 1117 HOSTCALLBACKDATA HostCallbackData; 1108 1118 HostCallbackData.u32Magic = HOSTCALLBACKMAGIC; … … 1113 1123 AssertRC(pfnCallback(pvData, 0, reinterpret_cast<void *>(&HostCallbackData), 1114 1124 sizeof(HostCallbackData))); 1125 LogFlowFunc (("Freeing strings\n")); 1115 1126 RTStrFree(pszName); 1116 1127 RTStrFree(pszValue); 1117 1128 RTStrFree(pszFlags); 1129 LogFlowFunc (("returning success\n")); 1118 1130 return VINF_SUCCESS; 1119 1131 } -
trunk/src/VBox/Main/ConsoleImpl.cpp
r15108 r15166 1040 1040 using namespace guestProp; 1041 1041 1042 LogFlowFunc (("pvExtension=%p, pvParms=%p, cbParms=%u\n", pvExtension, pvParms, cbParms)); 1042 1043 int rc = VINF_SUCCESS; 1043 1044 /* No locking, as this is purely a notification which does not make any … … 1047 1048 AssertReturn(HOSTCALLBACKMAGIC == pCBData->u32Magic, VERR_INVALID_PARAMETER); 1048 1049 ComObjPtr <Console> pConsole = reinterpret_cast <Console *> (pvExtension); 1050 LogFlowFunc (("pCBData->pcszName=%s, pCBData->pcszValue=%s, pCBData->pcszFlags=%s\n", pCBData->pcszName, pCBData->pcszValue, pCBData->pcszFlags)); 1049 1051 Bstr name(pCBData->pcszName); 1050 1052 Bstr value(pCBData->pcszValue); … … 1069 1071 } 1070 1072 } 1073 LogFlowFunc (("rc=%Rrc\n", rc)); 1071 1074 return rc; 1072 1075 }
Note:
See TracChangeset
for help on using the changeset viewer.