- Timestamp:
- Nov 14, 2008 2:51:23 PM (16 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxGuestLib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/HGCMInternal.cpp
r13837 r14217 138 138 } 139 139 140 /* Anyone who needs this can re-enable it locally */ 141 /* dprintf (("VbglHGCMCall: pCallInfo->cParms = %d, pHGCMCall->u32Function = %d\n", pCallInfo->cParms, pCallInfo->u32Function)); */ 140 Log (("VbglHGCMCall: pCallInfo->cParms = %d, pHGCMCall->u32Function = %d\n", pCallInfo->cParms, pCallInfo->u32Function)); 142 141 143 142 pHGCMCall = NULL; … … 148 147 rc = VbglGRAlloc ((VMMDevRequestHeader **)&pHGCMCall, sizeof (VMMDevHGCMCall) + cbParms, VMMDevReq_HGCMCall); 149 148 150 /* Anyone who needs this can re-enable it locally */ 151 /* dprintf (("VbglHGCMCall Allocated gr %p, rc = %Rrc, cbParms = %d\n", pHGCMCall, rc, cbParms)); */ 149 Log (("VbglHGCMCall Allocated gr %p, rc = %Rrc, cbParms = %d\n", pHGCMCall, rc, cbParms)); 152 150 153 151 if (RT_SUCCESS(rc)) … … 209 207 if (RT_SUCCESS(rc)) 210 208 { 211 /* Anyone who needs this can re-enable it locally */ 212 /* dprintf (("calling VbglGRPerform\n")); */ 209 Log (("calling VbglGRPerform\n")); 213 210 214 211 /* Issue request */ 215 212 rc = VbglGRPerform (&pHGCMCall->header.header); 216 213 217 /* Anyone who needs this can re-enable it locally */ 218 /* dprintf (("VbglGRPerform rc = %Rrc (header rc=%d)\n", rc, pHGCMCall->header.result)); */ 214 Log (("VbglGRPerform rc = %Rrc (header rc=%d)\n", rc, pHGCMCall->header.result)); 219 215 220 216 /** If the call failed, but as a result of the request itself, then pretend success … … 233 229 { 234 230 /* Wait for request completion interrupt notification from host */ 231 Log (("Processing HGCM call asynchronously\n")); 235 232 pAsyncCallback (&pHGCMCall->header, pvAsyncData, u32AsyncData); 236 233 } … … 248 245 /* The callback returns without completing the request, 249 246 * that means the wait was interrrupted. That can happen 250 * if system reboots or the VBoxService ended abnormally. 247 * if the request times out, the system reboots or the 248 * VBoxService ended abnormally. 251 249 * 252 250 * Cancel the request, the host will not write to the 253 251 * memory related to the cancelled request. 254 252 */ 253 Log (("Cancelling HGCM call\n")); 255 254 pHGCMCall->header.fu32Flags |= VBOX_HGCM_REQ_CANCELLED; 256 255 -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBGLInternal.h
r11820 r14217 32 32 #include <VBox/VBoxGuestLib.h> 33 33 34 #include <VBox/log.h> 35 34 36 #if (defined(DEBUG) && !defined(NO_LOGGING)) || defined(LOG_ENABLED) 35 #include <VBox/log.h>36 37 # define dprintf(a) RTLogBackdoorPrintf a 37 38 #else -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3Lib.cpp
r10639 r14217 311 311 { 312 312 /** @todo The passing of error codes needs to be tested and fixed (as does *all* the other hosts except for 313 * OS, Michael and Ramshankar!). The idea is that the VBox status codes in ring-0 should be 314 * transfered without loss down to ring-3. However, it's not vitally important right now (obviously, since 315 * the other guys has been ignoring it for 1+ years now). */ 313 * OS/2). The idea is that the VBox status codes in ring-0 should be transfered without loss down to 314 * ring-3. However, it's not vitally important right now (obviously, since the other guys has been 315 * ignoring it for 1+ years now). On Linux and Solaris the transfer is done, but it is currently not 316 * lossless, so still needs fixing. */ 316 317 DWORD LastErr = GetLastError(); 317 318 return RTErrConvertFromWin32(LastErr);
Note:
See TracChangeset
for help on using the changeset viewer.