VirtualBox

Ignore:
Timestamp:
Nov 5, 2008 2:34:43 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38826
Message:

s/VBOX_SUCCESS/RT_SUCCESS/g s/VBOX_FAILURE/RT_FAILURE/g - VBOX_SUCCESS and VBOX_FAILURE have *NOT* been retired (because old habbits die hard) just sligtly deprecated.

Location:
trunk/src/VBox/Additions/linux/module
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/module/cmc.c

    r10564 r13835  
    8080                      VMMDevReq_CtlGuestFilterMask);
    8181
    82     if (VBOX_FAILURE (rc))
     82    if (RT_FAILURE (rc))
    8383    {
    8484        elog ("VbglGRAlloc (CtlGuestFilterMask) failed rc=%d\n", rc);
     
    9191    rc = VbglGRPerform (&req->header);
    9292    VbglGRFree (&req->header);
    93     if (VBOX_FAILURE (rc))
     93    if (RT_FAILURE (rc))
    9494    {
    9595        elog ("VbglGRPerform (CtlGuestFilterMask) failed rc=%d\n", rc);
  • trunk/src/VBox/Additions/linux/module/hgcmcall.c

    r12917 r13835  
    322322    /* Call the internal VBoxGuest ioctl interface with the ioctl structure we have just copied. */
    323323    rc = vboxadd_cmc_call(vboxDev, VBOXGUEST_IOCTL_HGCM_CALL(0), hgcmR0);
    324     if (VBOX_FAILURE(rc))
     324    if (RT_FAILURE(rc))
    325325    {
    326326        LogRel(("VBOXGUEST_IOCTL_HGCM_CALL: internal ioctl call failed, rc=%Rrc\n", rc));
  • trunk/src/VBox/Additions/linux/module/vboxmod.c

    r13774 r13835  
    456456                /* request storage for the full request */
    457457                rc = VbglGRAlloc(&reqFull, cbRequestSize, reqHeader.requestType);
    458                 if (VBOX_FAILURE(rc))
     458                if (RT_FAILURE(rc))
    459459                {
    460460                    LogRelFunc(("VBOXGUEST_IOCTL_VMMREQUEST: could not allocate request structure! rc = %d\n", rc));
     
    486486
    487487                /* failed? */
    488                 if (VBOX_FAILURE(rrc) || VBOX_FAILURE(reqFull->rc))
     488                if (RT_FAILURE(rrc) || RT_FAILURE(reqFull->rc))
    489489                {
    490490                    LogRelFunc(("VBOXGUEST_IOCTL_VMMREQUEST: request execution failed!\n"));
    491                     rc = VBOX_FAILURE(rrc) ? -RTErrConvertToErrno(rrc)
     491                    rc = RT_FAILURE(rrc) ? -RTErrConvertToErrno(rrc)
    492492                                           : -RTErrConvertToErrno(reqFull->rc);
    493493                }
     
    677677        /* make a copy of the event mask */
    678678        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))
    680680        {
    681681            if (RT_LIKELY (vboxDev->irqAckRequest->events))
     
    729729        VMMDevReq_GetHypervisorInfo
    730730        );
    731     if (VBOX_FAILURE(rcVBox))
     731    if (RT_FAILURE(rcVBox))
    732732    {
    733733        LogRelFunc(("failed to allocate hypervisor info structure! rc = %Vrc\n", rcVBox));
     
    736736    /* query the hypervisor information */
    737737    rcVBox = VbglGRPerform(&req->header);
    738     if (VBOX_SUCCESS(rcVBox) && VBOX_SUCCESS(req->header.rc))
     738    if (RT_SUCCESS(rcVBox) && RT_SUCCESS(req->header.rc))
    739739    {
    740740        /* are we supposed to make a reservation? */
     
    755755                req->header.rc          = VERR_GENERAL_FAILURE;
    756756                rcVBox = VbglGRPerform(&req->header);
    757                 if (VBOX_SUCCESS(rcVBox) && VBOX_SUCCESS(req->header.rc))
     757                if (RT_SUCCESS(rcVBox) && RT_SUCCESS(req->header.rc))
    758758                {
    759759                    /* store mapping for future unmapping */
     
    806806        VMMDevReq_SetHypervisorInfo
    807807        );
    808     if (VBOX_FAILURE(rcVBox))
     808    if (RT_FAILURE(rcVBox))
    809809    {
    810810        LogRelFunc(("failed to allocate hypervisor info structure! rc = %Vrc\n", rcVBox));
     
    815815    req->hypervisorSize  = 0;
    816816    rcVBox = VbglGRPerform(&req->header);
    817     if (VBOX_SUCCESS(rcVBox) && VBOX_SUCCESS(req->header.rc))
     817    if (RT_SUCCESS(rcVBox) && RT_SUCCESS(req->header.rc))
    818818    {
    819819        /* now we can free the associated IO space mapping */
     
    994994    /* initialize VBGL subsystem */
    995995    rcVBox = VbglInit(vboxDev->io_port, vboxDev->pVMMDevMemory);
    996     if (VBOX_FAILURE(rcVBox))
     996    if (RT_FAILURE(rcVBox))
    997997    {
    998998        LogRelFunc(("could not initialize VBGL subsystem! rc = %Vrc\n", rcVBox));
     
    10041004    rcVBox = VbglGRAlloc((VMMDevRequestHeader**)&infoReq,
    10051005                         sizeof(VMMDevReportGuestInfo), VMMDevReq_ReportGuestInfo);
    1006     if (VBOX_FAILURE(rcVBox))
     1006    if (RT_FAILURE(rcVBox))
    10071007    {
    10081008        LogRelFunc(("could not allocate request structure! rc = %Vrc\n", rcVBox));
     
    10191019#endif
    10201020    rcVBox = VbglGRPerform(&infoReq->header);
    1021     if (VBOX_FAILURE(rcVBox) || VBOX_FAILURE(infoReq->header.rc))
     1021    if (RT_FAILURE(rcVBox) || RT_FAILURE(infoReq->header.rc))
    10221022    {
    10231023        LogRelFunc(("error reporting guest info to host! rc = %Vrc, header.rc = %Vrc\n",
     
    10391039                              sizeof(VMMDevReqGuestCapabilities2),
    10401040                              VMMDevReq_SetGuestCapabilities);
    1041         if (VBOX_FAILURE(rcVBox))
     1041        if (RT_FAILURE(rcVBox))
    10421042        {
    10431043            LogRelFunc(("could not allocate request structure! rc = %Vrc\n", rcVBox));
     
    10651065    rcVBox = VbglGRAlloc((VMMDevRequestHeader**)&vboxDev->irqAckRequest,
    10661066                         sizeof(VMMDevEvents), VMMDevReq_AcknowledgeEvents);
    1067     if (VBOX_FAILURE(rcVBox))
     1067    if (RT_FAILURE(rcVBox))
    10681068    {
    10691069        LogRelFunc(("could not allocate request structure! rc = %Vrc\n", rcVBox));
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette