Changeset 11284 in vbox for trunk/src/VBox/Devices/Storage/DrvVD.cpp
- Timestamp:
- Aug 8, 2008 10:32:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r11269 r11284 281 281 Log2(("%s: off=%#llx pvBuf=%p cbRead=%d %.*Vhxd\n", __FUNCTION__, 282 282 off, pvBuf, cbRead, cbRead, pvBuf)); 283 LogFlow(("%s: returns % Vrc\n", __FUNCTION__, rc));283 LogFlow(("%s: returns %Rrc\n", __FUNCTION__, rc)); 284 284 return rc; 285 285 } … … 296 296 off, pvBuf, cbWrite, cbWrite, pvBuf)); 297 297 int rc = VDWrite(pThis->pDisk, off, pvBuf, cbWrite); 298 LogFlow(("%s: returns % Vrc\n", __FUNCTION__, rc));298 LogFlow(("%s: returns %Rrc\n", __FUNCTION__, rc)); 299 299 return rc; 300 300 } … … 306 306 PVBOXDISK pThis = PDMIMEDIA_2_VBOXDISK(pInterface); 307 307 int rc = VDFlush(pThis->pDisk); 308 LogFlow(("%s: returns % Vrc\n", __FUNCTION__, rc));308 LogFlow(("%s: returns %Rrc\n", __FUNCTION__, rc)); 309 309 return rc; 310 310 } … … 342 342 rc = VERR_PDM_GEOMETRY_NOT_SET; 343 343 } 344 LogFlow(("%s: returns % Vrc (CHS=%d/%d/%d)\n", __FUNCTION__,344 LogFlow(("%s: returns %Rrc (CHS=%d/%d/%d)\n", __FUNCTION__, 345 345 rc, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors)); 346 346 return rc; … … 355 355 PVBOXDISK pThis = PDMIMEDIA_2_VBOXDISK(pInterface); 356 356 int rc = VDSetPCHSGeometry(pThis->pDisk, VD_LAST_IMAGE, pPCHSGeometry); 357 LogFlow(("%s: returns % Vrc\n", __FUNCTION__, rc));357 LogFlow(("%s: returns %Rrc\n", __FUNCTION__, rc)); 358 358 return rc; 359 359 } … … 371 371 rc = VERR_PDM_GEOMETRY_NOT_SET; 372 372 } 373 LogFlow(("%s: returns % Vrc (CHS=%d/%d/%d)\n", __FUNCTION__,373 LogFlow(("%s: returns %Rrc (CHS=%d/%d/%d)\n", __FUNCTION__, 374 374 rc, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors)); 375 375 return rc; … … 384 384 PVBOXDISK pThis = PDMIMEDIA_2_VBOXDISK(pInterface); 385 385 int rc = VDSetLCHSGeometry(pThis->pDisk, VD_LAST_IMAGE, pLCHSGeometry); 386 LogFlow(("%s: returns % Vrc\n", __FUNCTION__, rc));386 LogFlow(("%s: returns %Rrc\n", __FUNCTION__, rc)); 387 387 return rc; 388 388 } … … 394 394 PVBOXDISK pThis = PDMIMEDIA_2_VBOXDISK(pInterface); 395 395 int rc = VDGetUuid(pThis->pDisk, 0, pUuid); 396 LogFlow(("%s: returns % Vrc ({%Vuuid})\n", __FUNCTION__, rc, pUuid));396 LogFlow(("%s: returns %Rrc ({%Vuuid})\n", __FUNCTION__, rc, pUuid)); 397 397 return rc; 398 398 } … … 410 410 PVBOXDISK pThis = PDMIMEDIAASYNC_2_VBOXDISK(pInterface); 411 411 int rc = VDAsyncRead(pThis->pDisk, uOffset, cbRead, paSeg, cSeg, pvUser); 412 LogFlow(("%s: returns % Vrc\n", __FUNCTION__, rc));412 LogFlow(("%s: returns %Rrc\n", __FUNCTION__, rc)); 413 413 return rc; 414 414 } … … 422 422 PVBOXDISK pThis = PDMIMEDIAASYNC_2_VBOXDISK(pInterface); 423 423 int rc = VDAsyncWrite(pThis->pDisk, uOffset, cbWrite, paSeg, cSeg, pvUser); 424 LogFlow(("%s: returns % Vrc\n", __FUNCTION__, rc));424 LogFlow(("%s: returns %Rrc\n", __FUNCTION__, rc)); 425 425 return rc; 426 426 } … … 600 600 else if (RT_FAILURE(rc)) 601 601 { 602 AssertMsgFailed(("Failed to attach async transport driver below rc=% Vrc\n", rc));602 AssertMsgFailed(("Failed to attach async transport driver below rc=%Rrc\n", rc)); 603 603 } 604 604 else … … 748 748 else 749 749 { 750 AssertMsgFailed(("Failed to open image '%s' rc=% Vrc\n", pszName, rc));750 AssertMsgFailed(("Failed to open image '%s' rc=%Rrc\n", pszName, rc)); 751 751 break; 752 752 } … … 816 816 { 817 817 rc = RTCacheCreate(&pThis->pCache, 0, sizeof(DRVVDASYNCTASK), RTOBJCACHE_PROTECT_INSERT); 818 AssertMsg(RT_SUCCESS(rc), ("Failed to create cache rc=% Vrc\n", rc));819 } 820 821 LogFlow(("%s: returns % Vrc\n", __FUNCTION__, rc));818 AssertMsg(RT_SUCCESS(rc), ("Failed to create cache rc=%Rrc\n", rc)); 819 } 820 821 LogFlow(("%s: returns %Rrc\n", __FUNCTION__, rc)); 822 822 return rc; 823 823 }
Note:
See TracChangeset
for help on using the changeset viewer.