VirtualBox

Changeset 58884 in vbox


Ignore:
Timestamp:
Nov 26, 2015 2:04:29 PM (9 years ago)
Author:
vboxsync
Message:

supdrvTscDeltaThreadWait: OSDBGPRINT the state we don't like.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrvGip.cpp

    r58883 r58884  
    42494249                                    SUPDRVTSCDELTATHREADSTATE enmNewState)
    42504250{
     4251    SUPDRVTSCDELTATHREADSTATE enmActualState;
     4252    int rc;
     4253
    42514254    /*
    42524255     * Wait a short while for the expected state transition.
    42534256     */
    4254     int rc;
    42554257    RTSemEventWait(pDevExt->hTscDeltaEvent, RT_MS_1SEC);
    42564258    RTSpinlockAcquire(pDevExt->hTscDeltaSpinlock);
    4257     if (pDevExt->enmTscDeltaThreadState == enmNewState)
     4259    enmActualState = pDevExt->enmTscDeltaThreadState;
     4260    if (enmActualState == enmNewState)
    42584261    {
    42594262        RTSpinlockRelease(pDevExt->hTscDeltaSpinlock);
    42604263        rc = VINF_SUCCESS;
    42614264    }
    4262     else if (pDevExt->enmTscDeltaThreadState == enmCurState)
     4265    else if (enmActualState == enmCurState)
    42634266    {
    42644267        /*
     
    42734276             * Check the state whether we've succeeded.
    42744277             */
    4275             SUPDRVTSCDELTATHREADSTATE enmState;
    42764278            RTSpinlockAcquire(pDevExt->hTscDeltaSpinlock);
    4277             enmState = pDevExt->enmTscDeltaThreadState;
     4279            enmActualState = pDevExt->enmTscDeltaThreadState;
    42784280            RTSpinlockRelease(pDevExt->hTscDeltaSpinlock);
    4279             if (enmState == enmNewState)
     4281            if (enmActualState == enmNewState)
    42804282                rc = VINF_SUCCESS;
    4281             else if (enmState == enmCurState)
     4283            else if (enmActualState == enmCurState)
    42824284            {
    42834285                rc = VERR_TIMEOUT;
    4284                 OSDBGPRINT(("supdrvTscDeltaThreadWait: timed out state transition. enmState=%d enmNewState=%d\n", enmState,
    4285                             enmNewState));
     4286                OSDBGPRINT(("supdrvTscDeltaThreadWait: timed out state transition. enmActualState=%d enmNewState=%d\n",
     4287                            enmActualState, enmNewState));
    42864288            }
    42874289            else
     
    42894291                rc = VERR_INTERNAL_ERROR;
    42904292                OSDBGPRINT(("supdrvTscDeltaThreadWait: invalid state transition from %d to %d, expected %d\n", enmCurState,
    4291                             enmState, enmNewState));
     4293                            enmActualState, enmNewState));
    42924294            }
    42934295        }
     
    42984300    {
    42994301        RTSpinlockRelease(pDevExt->hTscDeltaSpinlock);
    4300         OSDBGPRINT(("supdrvTscDeltaThreadWait: invalid state transition from %d to %d\n", enmCurState, enmNewState));
     4302        OSDBGPRINT(("supdrvTscDeltaThreadWait: invalid state %d when transitioning from %d to %d\n",
     4303                    enmActualState, enmCurState, enmNewState));
    43014304        rc = VERR_INTERNAL_ERROR;
    43024305    }
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