VirtualBox

Changeset 12892 in vbox


Ignore:
Timestamp:
Oct 2, 2008 7:22:55 AM (16 years ago)
Author:
vboxsync
Message:

AssertMsgRC

Location:
trunk/src/VBox
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp

    r12384 r12892  
    11071107    /* Open again to make use after suspend possible again. */
    11081108    rc = RTFileOpen(&pData->DeviceFile, pData->pszDevicePath, RTFILE_O_OPEN | RTFILE_O_READWRITE);
    1109     AssertMsg(RT_SUCCESS(rc), ("Opening device file again failed rc=%Vrc\n", rc));
     1109    AssertMsgRC(rc, ("Opening device file again failed rc=%Vrc\n", rc));
    11101110
    11111111    if (RT_FAILURE(rc))
  • trunk/src/VBox/Devices/Storage/DrvVD.cpp

    r12637 r12892  
    888888        {
    889889            rc = RTCacheCreate(&pThis->pCache, 0, sizeof(DRVVDASYNCTASK), RTOBJCACHE_PROTECT_INSERT);
    890             AssertMsg(RT_SUCCESS(rc), ("Failed to create cache rc=%Rrc\n", rc));
     890            AssertMsgRC(rc, ("Failed to create cache rc=%Rrc\n", rc));
    891891        }
    892892    }
  • trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp

    r12641 r12892  
    50845084                                                                NULL, pvUser,
    50855085                                                                NULL /* Nothing required after read. */);
    5086         AssertMsg(RT_SUCCESS(rc), ("Failed to enqueue tasks rc=%Rrc\n", rc));
     5086        AssertMsgRC(rc, ("Failed to enqueue tasks rc=%Rrc\n", rc));
    50875087    }
    50885088
     
    52205220                                                                NULL, pvUser,
    52215221                                                                NULL /* Nothing required after read. */);
    5222         AssertMsg(RT_SUCCESS(rc), ("Failed to enqueue tasks rc=%Rrc\n", rc));
     5222        AssertMsgRC(rc, ("Failed to enqueue tasks rc=%Rrc\n", rc));
    52235223    }
    52245224
  • trunk/src/VBox/Runtime/generic/semsrw-generic.cpp

    r8245 r12892  
    206206             */
    207207            rc = RTSemEventMultiDestroy(pIntRWSem->ReadEvent);
    208             AssertMsg(RT_SUCCESS(rc), ("RTSemEventMultiDestroy failed! rc=%d\n", rc)); NOREF(rc);
     208            AssertMsgRC(rc, ("RTSemEventMultiDestroy failed! rc=%d\n", rc));
    209209            pIntRWSem->ReadEvent = NIL_RTSEMEVENTMULTI;
    210210
    211211            rc = RTSemEventDestroy(pIntRWSem->WriteEvent);
    212             AssertMsg(RT_SUCCESS(rc), ("RTSemEventDestroy failed! rc=%d\n", rc)); NOREF(rc);
     212            AssertMsgRC(rc, ("RTSemEventDestroy failed! rc=%d\n", rc));
    213213            pIntRWSem->WriteEvent = NIL_RTSEMEVENT;
    214214
     
    221221                RTThreadSleep(1);
    222222            }
    223             AssertMsg(RT_SUCCESS(rc), ("RTSemMutexDestroy failed! rc=%d\n", rc)); NOREF(rc);
     223            AssertMsgRC(rc, ("RTSemMutexDestroy failed! rc=%d\n", rc));
    224224            pIntRWSem->Mutex = (RTSEMMUTEX)0;
    225225
     
    286286                AssertMsgFailed(("Too many requests for one thread!\n"));
    287287                rc = RTSemMutexRelease(pIntRWSem->Mutex);
    288                 AssertMsg(RT_SUCCESS(rc), ("RTSemMutexRelease failed rc=%d\n", rc));
     288                AssertMsgRC(rc, ("RTSemMutexRelease failed rc=%d\n", rc));
    289289                return VERR_TOO_MANY_SEM_REQUESTS;
    290290            }
     
    325325            {
    326326                rc = RTSemEventMultiReset(pIntRWSem->ReadEvent);
    327                 AssertMsg(RT_SUCCESS(rc), ("RTSemEventMultiReset failed on RWSem %p, rc=%d\n", RWSem, rc));
     327                AssertMsgRC(rc, ("RTSemEventMultiReset failed on RWSem %p, rc=%d\n", RWSem, rc));
    328328            }
    329329            #endif
     
    420420                    {
    421421                        rc = RTSemEventSignal(pIntRWSem->WriteEvent);
    422                         AssertMsg(RT_SUCCESS(rc), ("Failed to signal writers on rwsem %p, rc=%d\n", RWSem, rc));
     422                        AssertMsgRC(rc, ("Failed to signal writers on rwsem %p, rc=%d\n", RWSem, rc));
    423423                    }
    424424                }
     
    552552        if (RT_FAILURE(rc) || RT_FAILURE(rc2))
    553553        {
    554             AssertMsg(RT_SUCCESS(rc2), ("RTSemMutexRequest failed on rwsem %p, rc=%d\n", RWSem, rc2));
     554            AssertMsgRC(rc2, ("RTSemMutexRequest failed on rwsem %p, rc=%d\n", RWSem, rc2));
    555555            if (RT_SUCCESS(rc))
    556556                rc = rc2;
     
    581581    ASMAtomicXchgPtr((void * volatile *)&pIntRWSem->WROwner, (void *)Self);
    582582    rc = RTSemMutexRelease(pIntRWSem->Mutex);
    583     AssertMsg(RT_SUCCESS(rc), ("RTSemMutexRelease failed. rc=%d\n", rc)); NOREF(rc);
     583    AssertMsgRC(rc, ("RTSemMutexRelease failed. rc=%d\n", rc));
    584584
    585585    return VINF_SUCCESS;
     
    646646    {
    647647        rc = RTSemEventMultiSignal(pIntRWSem->ReadEvent);
    648         AssertMsg(RT_SUCCESS(rc), ("RTSemEventMultiSignal failed for rwsem %p, rc=%d.\n", RWSem, rc)); NOREF(rc);
     648        AssertMsgRC(rc, ("RTSemEventMultiSignal failed for rwsem %p, rc=%d.\n", RWSem, rc));
    649649    }
    650650    rc = RTSemMutexRelease(pIntRWSem->Mutex);
    651     AssertMsg(RT_SUCCESS(rc), ("RTSemEventMultiSignal failed for rwsem %p, rc=%d.\n", RWSem, rc)); NOREF(rc);
     651    AssertMsgRC(rc, ("RTSemEventMultiSignal failed for rwsem %p, rc=%d.\n", RWSem, rc));
    652652
    653653    return VINF_SUCCESS;
  • trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp

    r12702 r12892  
    326326                    rc = hwaccmR0CheckCpuRcArray(aRc, RT_ELEMENTS(aRc), &idCpu);
    327327
    328                 AssertMsg(VBOX_SUCCESS(rc), ("HWACCMR0InitCPU failed for cpu %d with rc=%d\n", idCpu, rc));
     328                AssertMsgRC(rc, ("HWACCMR0InitCPU failed for cpu %d with rc=%d\n", idCpu, rc));
    329329
    330330                if (VBOX_SUCCESS(rc))
     
    426426    for (unsigned i=0;i<RT_ELEMENTS(HWACCMR0Globals.aCpuInfo);i++)
    427427    {
    428         AssertMsg(VBOX_SUCCESS(aRc[i]), ("HWACCMR0DisableCPU failed for cpu %d with rc=%d\n", i, aRc[i]));
     428        AssertMsgRC(aRc[i], ("HWACCMR0DisableCPU failed for cpu %d with rc=%d\n", i, aRc[i]));
    429429        if (HWACCMR0Globals.aCpuInfo[i].pMemObj != NIL_RTR0MEMOBJ)
    430430        {
     
    555555            rc = hwaccmR0CheckCpuRcArray(aRc, RT_ELEMENTS(aRc), &idCpu);
    556556
    557         AssertMsg(VBOX_SUCCESS(rc), ("HWACCMR0EnableAllCpus failed for cpu %d with rc=%d\n", idCpu, rc));
     557        AssertMsgRC(rc, ("HWACCMR0EnableAllCpus failed for cpu %d with rc=%d\n", idCpu, rc));
    558558        return rc;
    559559    }
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