Changeset 12892 in vbox
- Timestamp:
- Oct 2, 2008 7:22:55 AM (16 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp
r12384 r12892 1107 1107 /* Open again to make use after suspend possible again. */ 1108 1108 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)); 1110 1110 1111 1111 if (RT_FAILURE(rc)) -
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r12637 r12892 888 888 { 889 889 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)); 891 891 } 892 892 } -
trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp
r12641 r12892 5084 5084 NULL, pvUser, 5085 5085 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)); 5087 5087 } 5088 5088 … … 5220 5220 NULL, pvUser, 5221 5221 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)); 5223 5223 } 5224 5224 -
trunk/src/VBox/Runtime/generic/semsrw-generic.cpp
r8245 r12892 206 206 */ 207 207 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)); 209 209 pIntRWSem->ReadEvent = NIL_RTSEMEVENTMULTI; 210 210 211 211 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)); 213 213 pIntRWSem->WriteEvent = NIL_RTSEMEVENT; 214 214 … … 221 221 RTThreadSleep(1); 222 222 } 223 AssertMsg (RT_SUCCESS(rc), ("RTSemMutexDestroy failed! rc=%d\n", rc)); NOREF(rc);223 AssertMsgRC(rc, ("RTSemMutexDestroy failed! rc=%d\n", rc)); 224 224 pIntRWSem->Mutex = (RTSEMMUTEX)0; 225 225 … … 286 286 AssertMsgFailed(("Too many requests for one thread!\n")); 287 287 rc = RTSemMutexRelease(pIntRWSem->Mutex); 288 AssertMsg (RT_SUCCESS(rc), ("RTSemMutexRelease failed rc=%d\n", rc));288 AssertMsgRC(rc, ("RTSemMutexRelease failed rc=%d\n", rc)); 289 289 return VERR_TOO_MANY_SEM_REQUESTS; 290 290 } … … 325 325 { 326 326 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)); 328 328 } 329 329 #endif … … 420 420 { 421 421 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)); 423 423 } 424 424 } … … 552 552 if (RT_FAILURE(rc) || RT_FAILURE(rc2)) 553 553 { 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)); 555 555 if (RT_SUCCESS(rc)) 556 556 rc = rc2; … … 581 581 ASMAtomicXchgPtr((void * volatile *)&pIntRWSem->WROwner, (void *)Self); 582 582 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)); 584 584 585 585 return VINF_SUCCESS; … … 646 646 { 647 647 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)); 649 649 } 650 650 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)); 652 652 653 653 return VINF_SUCCESS; -
trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp
r12702 r12892 326 326 rc = hwaccmR0CheckCpuRcArray(aRc, RT_ELEMENTS(aRc), &idCpu); 327 327 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)); 329 329 330 330 if (VBOX_SUCCESS(rc)) … … 426 426 for (unsigned i=0;i<RT_ELEMENTS(HWACCMR0Globals.aCpuInfo);i++) 427 427 { 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])); 429 429 if (HWACCMR0Globals.aCpuInfo[i].pMemObj != NIL_RTR0MEMOBJ) 430 430 { … … 555 555 rc = hwaccmR0CheckCpuRcArray(aRc, RT_ELEMENTS(aRc), &idCpu); 556 556 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)); 558 558 return rc; 559 559 }
Note:
See TracChangeset
for help on using the changeset viewer.