VirtualBox

Changeset 26631 in vbox for trunk


Ignore:
Timestamp:
Feb 18, 2010 4:34:03 PM (15 years ago)
Author:
vboxsync
Message:

Additions/solaris: logging and some fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp

    r26504 r26631  
    357357    if (RT_FAILURE(rc))
    358358    {
    359         Log(("VBoxGuestInitDevExt: failed to spinlock, rc=%d!\n", rc));
     359        LogRel(("VBoxGuestInitDevExt: failed to spinlock, rc=%d!\n", rc));
    360360        if (pDevExt->EventSpinlock != NIL_RTSPINLOCK)
    361361            RTSpinlockDestroy(pDevExt->EventSpinlock);
     
    394394                        return VINF_SUCCESS;
    395395                    }
     396                    else
     397                        LogRel(("VBoxGuestInitDevExt: VBoxGuestSetGuestCapabilities failed, rc=%Rrc\n", rc));
    396398                }
     399                else
     400                    LogRel(("VBoxGuestInitDevExt: vboxGuestSetFilterMask failed, rc=%Rrc\n", rc));
    397401            }
    398 
    399             /* failure cleanup */
     402            else
     403                LogRel(("VBoxGuestInitDevExt: vboxGuestInitReportGuestInfo failed, rc=%Rrc\n", rc));
     404
     405            VbglGRFree((VMMDevRequestHeader *)pDevExt->pIrqAckEvents);
    400406        }
    401407        else
    402             Log(("VBoxGuestInitDevExt: VBoxGRAlloc failed, rc=%Rrc\n", rc));
     408            LogRel(("VBoxGuestInitDevExt: VBoxGRAlloc failed, rc=%Rrc\n", rc));
    403409
    404410        VbglTerminate();
    405411    }
    406412    else
    407         Log(("VBoxGuestInitDevExt: VbglInit failed, rc=%Rrc\n", rc));
     413        LogRel(("VBoxGuestInitDevExt: VbglInit failed, rc=%Rrc\n", rc));
    408414
    409415    rc2 = RTSpinlockDestroy(pDevExt->EventSpinlock); AssertRC(rc2);
     
    901907    {
    902908        pInfo->u32Result = VBOXGUEST_WAITEVENT_INTERRUPTED;
    903         rc == VERR_INTERRUPTED;
     909        rc = VERR_INTERRUPTED;
    904910        Log(("VBoxGuestCommonIOCtl: WAITEVENT: returns VERR_INTERRUPTED\n"));
    905911    }
     
    954960                &&  pWait->fResEvents != UINT32_MAX)
    955961            {
    956                 RTSEMEVENTMULTI     hEvent;
     962                RTSEMEVENTMULTI hEvent = pWait->Event;
    957963                pWait->fResEvents = UINT32_MAX;
    958964                RTSpinlockReleaseNoInts(pDevExt->EventSpinlock, &Tmp);
Note: See TracChangeset for help on using the changeset viewer.

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