Changeset 13835 in vbox for trunk/src/VBox/Additions/linux/module
- Timestamp:
- Nov 5, 2008 2:34:43 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 38826
- Location:
- trunk/src/VBox/Additions/linux/module
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/module/cmc.c
r10564 r13835 80 80 VMMDevReq_CtlGuestFilterMask); 81 81 82 if ( VBOX_FAILURE (rc))82 if (RT_FAILURE (rc)) 83 83 { 84 84 elog ("VbglGRAlloc (CtlGuestFilterMask) failed rc=%d\n", rc); … … 91 91 rc = VbglGRPerform (&req->header); 92 92 VbglGRFree (&req->header); 93 if ( VBOX_FAILURE (rc))93 if (RT_FAILURE (rc)) 94 94 { 95 95 elog ("VbglGRPerform (CtlGuestFilterMask) failed rc=%d\n", rc); -
trunk/src/VBox/Additions/linux/module/hgcmcall.c
r12917 r13835 322 322 /* Call the internal VBoxGuest ioctl interface with the ioctl structure we have just copied. */ 323 323 rc = vboxadd_cmc_call(vboxDev, VBOXGUEST_IOCTL_HGCM_CALL(0), hgcmR0); 324 if ( VBOX_FAILURE(rc))324 if (RT_FAILURE(rc)) 325 325 { 326 326 LogRel(("VBOXGUEST_IOCTL_HGCM_CALL: internal ioctl call failed, rc=%Rrc\n", rc)); -
trunk/src/VBox/Additions/linux/module/vboxmod.c
r13774 r13835 456 456 /* request storage for the full request */ 457 457 rc = VbglGRAlloc(&reqFull, cbRequestSize, reqHeader.requestType); 458 if ( VBOX_FAILURE(rc))458 if (RT_FAILURE(rc)) 459 459 { 460 460 LogRelFunc(("VBOXGUEST_IOCTL_VMMREQUEST: could not allocate request structure! rc = %d\n", rc)); … … 486 486 487 487 /* failed? */ 488 if ( VBOX_FAILURE(rrc) || VBOX_FAILURE(reqFull->rc))488 if (RT_FAILURE(rrc) || RT_FAILURE(reqFull->rc)) 489 489 { 490 490 LogRelFunc(("VBOXGUEST_IOCTL_VMMREQUEST: request execution failed!\n")); 491 rc = VBOX_FAILURE(rrc) ? -RTErrConvertToErrno(rrc)491 rc = RT_FAILURE(rrc) ? -RTErrConvertToErrno(rrc) 492 492 : -RTErrConvertToErrno(reqFull->rc); 493 493 } … … 677 677 /* make a copy of the event mask */ 678 678 rcVBox = VbglGRPerform (&vboxDev->irqAckRequest->header); 679 if ( VBOX_SUCCESS(rcVBox) && VBOX_SUCCESS(vboxDev->irqAckRequest->header.rc))679 if (RT_SUCCESS(rcVBox) && RT_SUCCESS(vboxDev->irqAckRequest->header.rc)) 680 680 { 681 681 if (RT_LIKELY (vboxDev->irqAckRequest->events)) … … 729 729 VMMDevReq_GetHypervisorInfo 730 730 ); 731 if ( VBOX_FAILURE(rcVBox))731 if (RT_FAILURE(rcVBox)) 732 732 { 733 733 LogRelFunc(("failed to allocate hypervisor info structure! rc = %Vrc\n", rcVBox)); … … 736 736 /* query the hypervisor information */ 737 737 rcVBox = VbglGRPerform(&req->header); 738 if ( VBOX_SUCCESS(rcVBox) && VBOX_SUCCESS(req->header.rc))738 if (RT_SUCCESS(rcVBox) && RT_SUCCESS(req->header.rc)) 739 739 { 740 740 /* are we supposed to make a reservation? */ … … 755 755 req->header.rc = VERR_GENERAL_FAILURE; 756 756 rcVBox = VbglGRPerform(&req->header); 757 if ( VBOX_SUCCESS(rcVBox) && VBOX_SUCCESS(req->header.rc))757 if (RT_SUCCESS(rcVBox) && RT_SUCCESS(req->header.rc)) 758 758 { 759 759 /* store mapping for future unmapping */ … … 806 806 VMMDevReq_SetHypervisorInfo 807 807 ); 808 if ( VBOX_FAILURE(rcVBox))808 if (RT_FAILURE(rcVBox)) 809 809 { 810 810 LogRelFunc(("failed to allocate hypervisor info structure! rc = %Vrc\n", rcVBox)); … … 815 815 req->hypervisorSize = 0; 816 816 rcVBox = VbglGRPerform(&req->header); 817 if ( VBOX_SUCCESS(rcVBox) && VBOX_SUCCESS(req->header.rc))817 if (RT_SUCCESS(rcVBox) && RT_SUCCESS(req->header.rc)) 818 818 { 819 819 /* now we can free the associated IO space mapping */ … … 994 994 /* initialize VBGL subsystem */ 995 995 rcVBox = VbglInit(vboxDev->io_port, vboxDev->pVMMDevMemory); 996 if ( VBOX_FAILURE(rcVBox))996 if (RT_FAILURE(rcVBox)) 997 997 { 998 998 LogRelFunc(("could not initialize VBGL subsystem! rc = %Vrc\n", rcVBox)); … … 1004 1004 rcVBox = VbglGRAlloc((VMMDevRequestHeader**)&infoReq, 1005 1005 sizeof(VMMDevReportGuestInfo), VMMDevReq_ReportGuestInfo); 1006 if ( VBOX_FAILURE(rcVBox))1006 if (RT_FAILURE(rcVBox)) 1007 1007 { 1008 1008 LogRelFunc(("could not allocate request structure! rc = %Vrc\n", rcVBox)); … … 1019 1019 #endif 1020 1020 rcVBox = VbglGRPerform(&infoReq->header); 1021 if ( VBOX_FAILURE(rcVBox) || VBOX_FAILURE(infoReq->header.rc))1021 if (RT_FAILURE(rcVBox) || RT_FAILURE(infoReq->header.rc)) 1022 1022 { 1023 1023 LogRelFunc(("error reporting guest info to host! rc = %Vrc, header.rc = %Vrc\n", … … 1039 1039 sizeof(VMMDevReqGuestCapabilities2), 1040 1040 VMMDevReq_SetGuestCapabilities); 1041 if ( VBOX_FAILURE(rcVBox))1041 if (RT_FAILURE(rcVBox)) 1042 1042 { 1043 1043 LogRelFunc(("could not allocate request structure! rc = %Vrc\n", rcVBox)); … … 1065 1065 rcVBox = VbglGRAlloc((VMMDevRequestHeader**)&vboxDev->irqAckRequest, 1066 1066 sizeof(VMMDevEvents), VMMDevReq_AcknowledgeEvents); 1067 if ( VBOX_FAILURE(rcVBox))1067 if (RT_FAILURE(rcVBox)) 1068 1068 { 1069 1069 LogRelFunc(("could not allocate request structure! rc = %Vrc\n", rcVBox));
Note:
See TracChangeset
for help on using the changeset viewer.