Changeset 11284 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Aug 8, 2008 10:32:08 PM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Storage
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r11269 r11284 301 301 if (RT_FAILURE(rc)) 302 302 { 303 LogBird(("ata: %x: schedule failed, rc=% Vrc\n", pCtl->IOPortBase1, rc));303 LogBird(("ata: %x: schedule failed, rc=%Rrc\n", pCtl->IOPortBase1, rc)); 304 304 rc = RTSemEventSignal(pCtl->AsyncIOSem); 305 305 AssertRC(rc); … … 1149 1149 } 1150 1150 if (s->cErrors++ < MAX_LOG_REL_ERRORS) 1151 LogRel(("PIIX3 ATA: LUN#%d: disk read error (rc=% Vrc iSector=%#RX64 cSectors=%#RX32)\n",1151 LogRel(("PIIX3 ATA: LUN#%d: disk read error (rc=%Rrc iSector=%#RX64 cSectors=%#RX32)\n", 1152 1152 s->iLUN, rc, iLBA, cSectors)); 1153 1153 ataCmdError(s, ID_ERR); … … 1196 1196 } 1197 1197 if (s->cErrors++ < MAX_LOG_REL_ERRORS) 1198 LogRel(("PIIX3 ATA: LUN#%d: disk write error (rc=% Vrc iSector=%#RX64 cSectors=%#RX32)\n",1198 LogRel(("PIIX3 ATA: LUN#%d: disk write error (rc=%Rrc iSector=%#RX64 cSectors=%#RX32)\n", 1199 1199 s->iLUN, rc, iLBA, cSectors)); 1200 1200 ataCmdError(s, ID_ERR); … … 1579 1579 || u8Cmd == SCSI_READ_TOC_PMA_ATIP)) 1580 1580 break; 1581 LogRel(("PIIX3 ATA: LUN#%d: CD-ROM passthrough command (%#04x) error %d % Vrc\n", s->iLUN, u8Cmd, uATAPISenseKey, rc));1581 LogRel(("PIIX3 ATA: LUN#%d: CD-ROM passthrough command (%#04x) error %d %Rrc\n", s->iLUN, u8Cmd, uATAPISenseKey, rc)); 1582 1582 } while (0); 1583 1583 } … … 4269 4269 pCtl->AsyncIOThread = NIL_RTTHREAD; 4270 4270 4271 Log2(("%s: Ctl#%d: return % Vrc\n", __FUNCTION__, ATACONTROLLER_IDX(pCtl), rc));4271 Log2(("%s: Ctl#%d: return %Rrc\n", __FUNCTION__, ATACONTROLLER_IDX(pCtl), rc)); 4272 4272 return rc; 4273 4273 } … … 5199 5199 rc = ataConfigLun(pDevIns, pIf); 5200 5200 else 5201 AssertMsgFailed(("Failed to attach LUN#%d. rc=% Vrc\n", pIf->iLUN, rc));5201 AssertMsgFailed(("Failed to attach LUN#%d. rc=%Rrc\n", pIf->iLUN, rc)); 5202 5202 5203 5203 if (RT_FAILURE(rc)) … … 5740 5740 else if (rc != VERR_PDM_NO_ATTACHED_DRIVER) 5741 5741 { 5742 AssertMsgFailed(("Failed to attach to status driver. rc=% Vrc\n", rc));5742 AssertMsgFailed(("Failed to attach to status driver. rc=%Rrc\n", rc)); 5743 5743 return PDMDEV_SET_ERROR(pDevIns, rc, N_("PIIX3 cannot attach to status driver")); 5744 5744 } … … 5797 5797 else 5798 5798 { 5799 AssertMsgFailed(("Failed to attach LUN#%d. rc=% Vrc\n", pIf->iLUN, rc));5799 AssertMsgFailed(("Failed to attach LUN#%d. rc=%Rrc\n", pIf->iLUN, rc)); 5800 5800 switch (rc) 5801 5801 { -
trunk/src/VBox/Devices/Storage/DrvBlock.cpp
r11269 r11284 346 346 { 347 347 *pPCHSGeometry = pThis->PCHSGeometry; 348 LogFlow(("%s: returns % Vrc {%d,%d,%d}\n", __FUNCTION__, rc, pThis->PCHSGeometry.cCylinders, pThis->PCHSGeometry.cHeads, pThis->PCHSGeometry.cSectors));348 LogFlow(("%s: returns %Rrc {%d,%d,%d}\n", __FUNCTION__, rc, pThis->PCHSGeometry.cCylinders, pThis->PCHSGeometry.cHeads, pThis->PCHSGeometry.cSectors)); 349 349 } 350 350 else if (rc == VERR_NOT_IMPLEMENTED) 351 351 { 352 352 rc = VERR_PDM_GEOMETRY_NOT_SET; 353 LogFlow(("%s: returns % Vrc\n", __FUNCTION__, rc));353 LogFlow(("%s: returns %Rrc\n", __FUNCTION__, rc)); 354 354 } 355 355 return rc; … … 418 418 { 419 419 *pLCHSGeometry = pThis->LCHSGeometry; 420 LogFlow(("%s: returns % Vrc {%d,%d,%d}\n", __FUNCTION__, rc, pThis->LCHSGeometry.cCylinders, pThis->LCHSGeometry.cHeads, pThis->LCHSGeometry.cSectors));420 LogFlow(("%s: returns %Rrc {%d,%d,%d}\n", __FUNCTION__, rc, pThis->LCHSGeometry.cCylinders, pThis->LCHSGeometry.cHeads, pThis->LCHSGeometry.cSectors)); 421 421 } 422 422 else if (rc == VERR_NOT_IMPLEMENTED) 423 423 { 424 424 rc = VERR_PDM_GEOMETRY_NOT_SET; 425 LogFlow(("%s: returns % Vrc\n", __FUNCTION__, rc));425 LogFlow(("%s: returns %Rrc\n", __FUNCTION__, rc)); 426 426 } 427 427 return rc; … … 507 507 if (RT_FAILURE(rc)) 508 508 { 509 Log(("drvblockMount: Prepare failed for \"%s\" rc=% Vrc\n", pszFilename, rc));509 Log(("drvblockMount: Prepare failed for \"%s\" rc=%Rrc\n", pszFilename, rc)); 510 510 return rc; 511 511 } … … 519 519 if (RT_FAILURE(rc)) 520 520 { 521 Log(("drvblockMount: Attach failed rc=% Vrc\n", rc));521 Log(("drvblockMount: Attach failed rc=%Rrc\n", rc)); 522 522 return rc; 523 523 } … … 590 590 if (RT_FAILURE(rc)) 591 591 { 592 Log(("drvblockUnmount: Detach failed rc=% Vrc\n", rc));592 Log(("drvblockUnmount: Detach failed rc=%Rrc\n", rc)); 593 593 return rc; 594 594 } -
trunk/src/VBox/Devices/Storage/DrvHostBase.cpp
r11267 r11284 176 176 } 177 177 else 178 Log(("%s-%d: drvHostBaseRead: RTFileRead(%d, %p, %#x) -> % Vrc (off=%#llx '%s')\n",178 Log(("%s-%d: drvHostBaseRead: RTFileRead(%d, %p, %#x) -> %Rrc (off=%#llx '%s')\n", 179 179 pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, pThis->FileDevice, 180 180 pvBuf, cbRead, rc, off, pThis->pszDevice)); 181 181 } 182 182 else 183 Log(("%s-%d: drvHostBaseRead: RTFileSeek(%d,%#llx,) -> % Vrc\n", pThis->pDrvIns->pDrvReg->szDriverName,183 Log(("%s-%d: drvHostBaseRead: RTFileSeek(%d,%#llx,) -> %Rrc\n", pThis->pDrvIns->pDrvReg->szDriverName, 184 184 pThis->pDrvIns->iInstance, pThis->FileDevice, off, rc)); 185 185 #endif … … 189 189 190 190 RTCritSectLeave(&pThis->CritSect); 191 LogFlow(("%s-%d: drvHostBaseRead: returns % Vrc\n", pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, rc));191 LogFlow(("%s-%d: drvHostBaseRead: returns %Rrc\n", pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, rc)); 192 192 return rc; 193 193 } … … 226 226 rc = RTFileWrite(pThis->FileDevice, pvBuf, cbWrite, NULL); 227 227 if (RT_FAILURE(rc)) 228 Log(("%s-%d: drvHostBaseWrite: RTFileWrite(%d, %p, %#x) -> % Vrc (off=%#llx '%s')\n",228 Log(("%s-%d: drvHostBaseWrite: RTFileWrite(%d, %p, %#x) -> %Rrc (off=%#llx '%s')\n", 229 229 pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, pThis->FileDevice, 230 230 pvBuf, cbWrite, rc, off, pThis->pszDevice)); 231 231 } 232 232 else 233 Log(("%s-%d: drvHostBaseWrite: RTFileSeek(%d,%#llx,) -> % Vrc\n",233 Log(("%s-%d: drvHostBaseWrite: RTFileSeek(%d,%#llx,) -> %Rrc\n", 234 234 pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, pThis->FileDevice, off, rc)); 235 235 #endif … … 242 242 243 243 RTCritSectLeave(&pThis->CritSect); 244 LogFlow(("%s-%d: drvHostBaseWrite: returns % Vrc\n", pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, rc));244 LogFlow(("%s-%d: drvHostBaseWrite: returns %Rrc\n", pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, rc)); 245 245 return rc; 246 246 } … … 269 269 270 270 RTCritSectLeave(&pThis->CritSect); 271 LogFlow(("%s-%d: drvHostBaseFlush: returns % Vrc\n", pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, rc));271 LogFlow(("%s-%d: drvHostBaseFlush: returns %Rrc\n", pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, rc)); 272 272 return rc; 273 273 } … … 347 347 348 348 RTCritSectLeave(&pThis->CritSect); 349 LogFlow(("%s-%d: %s: returns % Vrc CHS={%d,%d,%d}\n",349 LogFlow(("%s-%d: %s: returns %Rrc CHS={%d,%d,%d}\n", 350 350 pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, __FUNCTION__, rc, pThis->PCHSGeometry.cCylinders, pThis->PCHSGeometry.cHeads, pThis->PCHSGeometry.cSectors)); 351 351 return rc; … … 399 399 400 400 RTCritSectLeave(&pThis->CritSect); 401 LogFlow(("%s-%d: %s: returns % Vrc CHS={%d,%d,%d}\n",401 LogFlow(("%s-%d: %s: returns %Rrc CHS={%d,%d,%d}\n", 402 402 pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, __FUNCTION__, rc, pThis->LCHSGeometry.cCylinders, pThis->LCHSGeometry.cHeads, pThis->LCHSGeometry.cSectors)); 403 403 return rc; … … 496 496 497 497 RTCritSectLeave(&pThis->CritSect); 498 LogFlow(("%s-%d: drvHostBaseLock: returns % Vrc\n", pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, rc));498 LogFlow(("%s-%d: drvHostBaseLock: returns %Rrc\n", pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, rc)); 499 499 return rc; 500 500 } … … 519 519 520 520 RTCritSectLeave(&pThis->CritSect); 521 LogFlow(("%s-%d: drvHostBaseUnlock: returns % Vrc\n", pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, rc));521 LogFlow(("%s-%d: drvHostBaseUnlock: returns %Rrc\n", pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, rc)); 522 522 return rc; 523 523 } … … 995 995 if (!pThis->fReadOnlyConfig) 996 996 { 997 LogFlow(("%s-%d: drvHostBaseReopen: '%s' - retry readonly (% Vrc)\n", pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, pThis->pszDeviceOpen, rc));997 LogFlow(("%s-%d: drvHostBaseReopen: '%s' - retry readonly (%Rrc)\n", pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, pThis->pszDeviceOpen, rc)); 998 998 #ifdef RT_OS_SOLARIS 999 999 rc = drvHostBaseOpen(pThis, &FileDevice, &FileRawDevice, false); … … 1004 1004 if (RT_FAILURE(rc)) 1005 1005 { 1006 LogFlow(("%s-%d: failed to open device '%s', rc=% Vrc\n",1006 LogFlow(("%s-%d: failed to open device '%s', rc=%Rrc\n", 1007 1007 pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, pThis->pszDevice, rc)); 1008 1008 return rc; … … 1217 1217 : VERR_WRITE_ERROR; 1218 1218 if (pThis->cLogRelErrors++ < 10) 1219 LogRel(("DVD scsi error: cmd={%.*Rhxs} TaskStatus=%#x key=%#x ASC=%#x ASCQ=%#x (% Vrc)\n",1219 LogRel(("DVD scsi error: cmd={%.*Rhxs} TaskStatus=%#x key=%#x ASC=%#x ASCQ=%#x (%Rrc)\n", 1220 1220 cbCmd, pbCmd, TaskStatus, SenseData.SENSE_KEY, SenseData.ADDITIONAL_SENSE_CODE, 1221 1221 SenseData.ADDITIONAL_SENSE_CODE_QUALIFIER, rc)); … … 1254 1254 if (RT_FAILURE(rc)) 1255 1255 { 1256 LogFlow(("%s-%d: failed to figure media size of %s, rc=% Vrc\n",1256 LogFlow(("%s-%d: failed to figure media size of %s, rc=%Rrc\n", 1257 1257 pThis->pDrvIns->pDrvReg->szDriverName, pThis->pDrvIns->iInstance, pThis->pszDevice, rc)); 1258 1258 return rc; … … 1452 1452 && rc != VERR_TIMEOUT) 1453 1453 { 1454 AssertMsgFailed(("rc=% Vrc\n", rc));1454 AssertMsgFailed(("rc=%Rrc\n", rc)); 1455 1455 pThis->ThreadPoller = NIL_RTTHREAD; 1456 LogFlow(("drvHostBaseMediaThread: returns % Vrc\n", rc));1456 LogFlow(("drvHostBaseMediaThread: returns %Rrc\n", rc)); 1457 1457 return rc; 1458 1458 } … … 1754 1754 else if (RT_FAILURE(rc)) 1755 1755 { 1756 AssertMsgFailed(("Configuration error: Query \"Mountable\" resulted in % Vrc.\n", rc));1756 AssertMsgFailed(("Configuration error: Query \"Mountable\" resulted in %Rrc.\n", rc)); 1757 1757 return rc; 1758 1758 } … … 1764 1764 else if (RT_FAILURE(rc)) 1765 1765 { 1766 AssertMsgFailed(("Configuration error: Query \"ReadOnly\" resulted in % Vrc.\n", rc));1766 AssertMsgFailed(("Configuration error: Query \"ReadOnly\" resulted in %Rrc.\n", rc)); 1767 1767 return rc; 1768 1768 } … … 1774 1774 else if (RT_FAILURE(rc)) 1775 1775 { 1776 AssertMsgFailed(("Configuration error: Query \"Locked\" resulted in % Vrc.\n", rc));1776 AssertMsgFailed(("Configuration error: Query \"Locked\" resulted in %Rrc.\n", rc)); 1777 1777 return rc; 1778 1778 } … … 1784 1784 else if (RT_FAILURE(rc)) 1785 1785 { 1786 AssertMsgFailed(("Configuration error: Query \"BIOSVisible\" resulted in % Vrc.\n", rc));1786 AssertMsgFailed(("Configuration error: Query \"BIOSVisible\" resulted in %Rrc.\n", rc)); 1787 1787 return rc; 1788 1788 } … … 1798 1798 if (RT_FAILURE(rc)) 1799 1799 { 1800 AssertMsgFailed(("Configuration error: Uuid from string failed on \"%s\", rc=% Vrc.\n", psz, rc));1800 AssertMsgFailed(("Configuration error: Uuid from string failed on \"%s\", rc=%Rrc.\n", psz, rc)); 1801 1801 MMR3HeapFree(psz); 1802 1802 return rc; … … 1806 1806 else 1807 1807 { 1808 AssertMsgFailed(("Configuration error: Failed to obtain the uuid, rc=% Vrc.\n", rc));1808 AssertMsgFailed(("Configuration error: Failed to obtain the uuid, rc=%Rrc.\n", rc)); 1809 1809 return rc; 1810 1810 } … … 1874 1874 if (rc != VERR_PDM_NO_ATTACHED_DRIVER) 1875 1875 { 1876 AssertMsgFailed(("Configuration error: No attached driver, please! (rc=% Vrc)\n", rc));1876 AssertMsgFailed(("Configuration error: No attached driver, please! (rc=%Rrc)\n", rc)); 1877 1877 return VERR_PDM_DRVINS_NO_ATTACH; 1878 1878 } … … 1952 1952 */ 1953 1953 pThis->IBlock.pfnSendCmd = NULL; 1954 AssertMsgFailed(("Could not open host device %s, rc=% Vrc\n", pszDevice, rc));1954 AssertMsgFailed(("Could not open host device %s, rc=%Rrc\n", pszDevice, rc)); 1955 1955 switch (rc) 1956 1956 { … … 1994 1994 if (RT_FAILURE(rc)) 1995 1995 { 1996 AssertMsgFailed(("Failed to lock the dvd drive. rc=% Vrc\n", rc));1996 AssertMsgFailed(("Failed to lock the dvd drive. rc=%Rrc\n", rc)); 1997 1997 return rc; 1998 1998 } … … 2027 2027 if (RT_FAILURE(rc)) 2028 2028 { 2029 AssertMsgFailed(("Failed to create poller thread. rc=% Vrc\n", rc));2029 AssertMsgFailed(("Failed to create poller thread. rc=%Rrc\n", rc)); 2030 2030 return rc; 2031 2031 } -
trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp
r11267 r11284 199 199 200 200 RTCritSectLeave(&pThis->CritSect); 201 LogFlow(("drvHostDvdUnmount: returns % Vrc\n", rc));201 LogFlow(("drvHostDvdUnmount: returns %Rrc\n", rc)); 202 202 return rc; 203 203 } … … 265 265 #endif 266 266 267 LogFlow(("drvHostDvdDoLock(, fLock=%RTbool): returns % Vrc\n", fLock, rc));267 LogFlow(("drvHostDvdDoLock(, fLock=%RTbool): returns %Rrc\n", fLock, rc)); 268 268 return rc; 269 269 } … … 472 472 *pbStat = cgc.sense->sense_key; 473 473 rc = RTErrConvertFromErrno(errno); 474 Log2(("%s: error status %d, rc=% Vrc\n", __FUNCTION__, cgc.stat, rc));474 Log2(("%s: error status %d, rc=%Rrc\n", __FUNCTION__, cgc.stat, rc)); 475 475 } 476 476 } … … 541 541 *pbStat = aSense[2] & 0x0f; 542 542 rc = RTErrConvertFromErrno(errno); 543 Log2(("%s: error status. rc=% Vrc\n", __FUNCTION__, rc));543 Log2(("%s: error status. rc=%Rrc\n", __FUNCTION__, rc)); 544 544 } 545 545 else … … 609 609 # error "Unsupported platform." 610 610 #endif 611 LogFlow(("%s: rc=% Vrc\n", __FUNCTION__, rc));611 LogFlow(("%s: rc=%Rrc\n", __FUNCTION__, rc)); 612 612 return rc; 613 613 } … … 765 765 } 766 766 767 LogFlow(("drvHostDvdConstruct: returns % Vrc\n", rc));767 LogFlow(("drvHostDvdConstruct: returns %Rrc\n", rc)); 768 768 return rc; 769 769 } -
trunk/src/VBox/Devices/Storage/DrvHostFloppy.cpp
r11267 r11284 81 81 { 82 82 rc = RTErrConvertFromErrno (errno); 83 Log(("DrvHostFloppy: FDFLUSH ioctl(%s) failed, errno=%d rc=% Vrc\n", pThis->pszDevice, errno, rc));83 Log(("DrvHostFloppy: FDFLUSH ioctl(%s) failed, errno=%d rc=%Rrc\n", pThis->pszDevice, errno, rc)); 84 84 return rc; 85 85 } … … 90 90 { 91 91 rc = RTErrConvertFromErrno(errno); 92 Log(("DrvHostFloppy: FDGETDRVSTAT ioctl(%s) failed, errno=%d rc=% Vrc\n", pThis->pszDevice, errno, rc));92 Log(("DrvHostFloppy: FDGETDRVSTAT ioctl(%s) failed, errno=%d rc=%Rrc\n", pThis->pszDevice, errno, rc)); 93 93 return rc; 94 94 } … … 190 190 } 191 191 192 LogFlow(("drvHostFloppyConstruct: returns % Vrc\n", rc));192 LogFlow(("drvHostFloppyConstruct: returns %Rrc\n", rc)); 193 193 return rc; 194 194 } -
trunk/src/VBox/Devices/Storage/DrvMediaISO.cpp
r11269 r11284 188 188 } 189 189 190 AssertMsgFailed(("Error querying ISO file size, rc=% Vrc. (%s)\n", rc, pThis->pszFilename));190 AssertMsgFailed(("Error querying ISO file size, rc=%Rrc. (%s)\n", rc, pThis->pszFilename)); 191 191 return 0; 192 192 } … … 249 249 } 250 250 else 251 AssertMsgFailed(("RTFileRead(%d, %p, %#x) -> % Vrc (off=%#llx '%s')\n",251 AssertMsgFailed(("RTFileRead(%d, %p, %#x) -> %Rrc (off=%#llx '%s')\n", 252 252 pThis->File, pvBuf, cbRead, rc, off, pThis->pszFilename)); 253 253 } 254 254 else 255 AssertMsgFailed(("RTFileSeek(%d,%#llx,) -> % Vrc\n", pThis->File, off, rc));256 LogFlow(("drvMediaISORead: returns % Vrc\n", rc));255 AssertMsgFailed(("RTFileSeek(%d,%#llx,) -> %Rrc\n", pThis->File, off, rc)); 256 LogFlow(("drvMediaISORead: returns %Rrc\n", rc)); 257 257 return rc; 258 258 } -
trunk/src/VBox/Devices/Storage/DrvRawImage.cpp
r11269 r11284 133 133 if (RT_FAILURE(rc)) 134 134 { 135 AssertMsgFailed(("Configuration error: query for \"Path\" string return % Vrc.\n", rc));135 AssertMsgFailed(("Configuration error: query for \"Path\" string return %Rrc.\n", rc)); 136 136 return rc; 137 137 } … … 160 160 else 161 161 { 162 AssertMsgFailed(("Could not open Raw image file %s, rc=% Vrc\n", pszName, rc));162 AssertMsgFailed(("Could not open Raw image file %s, rc=%Rrc\n", pszName, rc)); 163 163 MMR3HeapFree(pszName); 164 164 } … … 206 206 } 207 207 208 AssertMsgFailed(("Error querying Raw image file size, rc=% Vrc. (%s)\n", rc, pThis->pszFilename));208 AssertMsgFailed(("Error querying Raw image file size, rc=%Rrc. (%s)\n", rc, pThis->pszFilename)); 209 209 return 0; 210 210 } … … 267 267 } 268 268 else 269 AssertMsgFailed(("RTFileRead(%d, %p, %#x) -> % Vrc (off=%#llx '%s')\n",269 AssertMsgFailed(("RTFileRead(%d, %p, %#x) -> %Rrc (off=%#llx '%s')\n", 270 270 pThis->File, pvBuf, cbRead, rc, off, pThis->pszFilename)); 271 271 } 272 272 else 273 AssertMsgFailed(("RTFileSeek(%d,%#llx,) -> % Vrc\n", pThis->File, off, rc));274 LogFlow(("drvRawImageRead: returns % Vrc\n", rc));273 AssertMsgFailed(("RTFileSeek(%d,%#llx,) -> %Rrc\n", pThis->File, off, rc)); 274 LogFlow(("drvRawImageRead: returns %Rrc\n", rc)); 275 275 return rc; 276 276 } … … 301 301 } 302 302 else 303 AssertMsgFailed(("RTFileWrite(%d, %p, %#x) -> % Vrc (off=%#llx '%s')\n",303 AssertMsgFailed(("RTFileWrite(%d, %p, %#x) -> %Rrc (off=%#llx '%s')\n", 304 304 pThis->File, pvBuf, cbWrite, rc, off, pThis->pszFilename)); 305 305 } 306 306 else 307 AssertMsgFailed(("RTFileSeek(%d,%#llx,) -> % Vrc\n", pThis->File, off, rc));308 LogFlow(("drvRawImageWrite: returns % Vrc\n", rc));307 AssertMsgFailed(("RTFileSeek(%d,%#llx,) -> %Rrc\n", pThis->File, off, rc)); 308 LogFlow(("drvRawImageWrite: returns %Rrc\n", rc)); 309 309 return rc; 310 310 } … … 319 319 Assert(pThis->File != NIL_RTFILE); 320 320 int rc = RTFileFlush(pThis->File); 321 LogFlow(("drvRawImageFlush: returns % Vrc\n", rc));321 LogFlow(("drvRawImageFlush: returns %Rrc\n", rc)); 322 322 return rc; 323 323 } -
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 } -
trunk/src/VBox/Devices/Storage/RawHDDCore.cpp
r11266 r11284 302 302 303 303 out: 304 LogFlowFunc(("returns % Vrc\n", rc));304 LogFlowFunc(("returns %Rrc\n", rc)); 305 305 return rc; 306 306 } … … 350 350 351 351 out: 352 LogFlowFunc(("returns % Vrc (pBackendData=%#p)\n", rc, *ppBackendData));352 LogFlowFunc(("returns %Rrc (pBackendData=%#p)\n", rc, *ppBackendData)); 353 353 return rc; 354 354 } … … 419 419 420 420 out: 421 LogFlowFunc(("returns % Vrc (pBackendData=%#p)\n", rc, *ppBackendData));421 LogFlowFunc(("returns %Rrc (pBackendData=%#p)\n", rc, *ppBackendData)); 422 422 return rc; 423 423 } … … 429 429 int rc = VERR_NOT_IMPLEMENTED; 430 430 431 LogFlowFunc(("returns % Vrc\n", rc));431 LogFlowFunc(("returns %Rrc\n", rc)); 432 432 return rc; 433 433 } … … 445 445 rawFreeImage(pImage, fDelete); 446 446 447 LogFlowFunc(("returns % Vrc\n", rc));447 LogFlowFunc(("returns %Rrc\n", rc)); 448 448 return rc; 449 449 } … … 472 472 473 473 out: 474 LogFlowFunc(("returns % Vrc\n", rc));474 LogFlowFunc(("returns %Rrc\n", rc)); 475 475 return rc; 476 476 } … … 507 507 508 508 out: 509 LogFlowFunc(("returns % Vrc\n", rc));509 LogFlowFunc(("returns %Rrc\n", rc)); 510 510 return rc; 511 511 } … … 519 519 520 520 rc = rawFlushImage(pImage); 521 LogFlowFunc(("returns % Vrc\n", rc));521 LogFlowFunc(("returns %Rrc\n", rc)); 522 522 return rc; 523 523 } … … 552 552 rc = VERR_VDI_NOT_OPENED; 553 553 554 LogFlowFunc(("returns % Vrc enmImageType=%u\n", rc, *penmImageType));554 LogFlowFunc(("returns %Rrc enmImageType=%u\n", rc, *penmImageType)); 555 555 return rc; 556 556 } … … 617 617 rc = VERR_VDI_NOT_OPENED; 618 618 619 LogFlowFunc(("returns % Vrc (PCHS=%u/%u/%u)\n", rc, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));619 LogFlowFunc(("returns %Rrc (PCHS=%u/%u/%u)\n", rc, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors)); 620 620 return rc; 621 621 } … … 646 646 647 647 out: 648 LogFlowFunc(("returns % Vrc\n", rc));648 LogFlowFunc(("returns %Rrc\n", rc)); 649 649 return rc; 650 650 } … … 673 673 rc = VERR_VDI_NOT_OPENED; 674 674 675 LogFlowFunc(("returns % Vrc (LCHS=%u/%u/%u)\n", rc, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));675 LogFlowFunc(("returns %Rrc (LCHS=%u/%u/%u)\n", rc, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors)); 676 676 return rc; 677 677 } … … 702 702 703 703 out: 704 LogFlowFunc(("returns % Vrc\n", rc));704 LogFlowFunc(("returns %Rrc\n", rc)); 705 705 return rc; 706 706 } … … 762 762 763 763 out: 764 LogFlowFunc(("returns % Vrc\n", rc));764 LogFlowFunc(("returns %Rrc\n", rc)); 765 765 return rc; 766 766 } … … 785 785 rc = VERR_VDI_NOT_OPENED; 786 786 787 LogFlowFunc(("returns % Vrc comment='%s'\n", rc, pszComment));787 LogFlowFunc(("returns %Rrc comment='%s'\n", rc, pszComment)); 788 788 return rc; 789 789 } … … 810 810 811 811 out: 812 LogFlowFunc(("returns % Vrc\n", rc));812 LogFlowFunc(("returns %Rrc\n", rc)); 813 813 return rc; 814 814 } … … 828 828 rc = VERR_VDI_NOT_OPENED; 829 829 830 LogFlowFunc(("returns % Vrc (%Vuuid)\n", rc, pUuid));830 LogFlowFunc(("returns %Rrc (%Vuuid)\n", rc, pUuid)); 831 831 return rc; 832 832 } … … 852 852 rc = VERR_VDI_NOT_OPENED; 853 853 854 LogFlowFunc(("returns % Vrc\n", rc));854 LogFlowFunc(("returns %Rrc\n", rc)); 855 855 return rc; 856 856 } … … 870 870 rc = VERR_VDI_NOT_OPENED; 871 871 872 LogFlowFunc(("returns % Vrc (%Vuuid)\n", rc, pUuid));872 LogFlowFunc(("returns %Rrc (%Vuuid)\n", rc, pUuid)); 873 873 return rc; 874 874 } … … 893 893 rc = VERR_VDI_NOT_OPENED; 894 894 895 LogFlowFunc(("returns % Vrc\n", rc));895 LogFlowFunc(("returns %Rrc\n", rc)); 896 896 return rc; 897 897 } … … 911 911 rc = VERR_VDI_NOT_OPENED; 912 912 913 LogFlowFunc(("returns % Vrc (%Vuuid)\n", rc, pUuid));913 LogFlowFunc(("returns %Rrc (%Vuuid)\n", rc, pUuid)); 914 914 return rc; 915 915 } … … 934 934 rc = VERR_VDI_NOT_OPENED; 935 935 936 LogFlowFunc(("returns % Vrc\n", rc));936 LogFlowFunc(("returns %Rrc\n", rc)); 937 937 return rc; 938 938 } … … 952 952 rc = VERR_VDI_NOT_OPENED; 953 953 954 LogFlowFunc(("returns % Vrc (%Vuuid)\n", rc, pUuid));954 LogFlowFunc(("returns %Rrc (%Vuuid)\n", rc, pUuid)); 955 955 return rc; 956 956 } … … 975 975 rc = VERR_VDI_NOT_OPENED; 976 976 977 LogFlowFunc(("returns % Vrc\n", rc));977 LogFlowFunc(("returns %Rrc\n", rc)); 978 978 return rc; 979 979 } … … 997 997 { 998 998 int rc = VERR_NOT_IMPLEMENTED; 999 LogFlow(("%s: returned % Vrc\n", __FUNCTION__, rc));999 LogFlow(("%s: returned %Rrc\n", __FUNCTION__, rc)); 1000 1000 return rc; 1001 1001 } … … 1004 1004 { 1005 1005 int rc = VERR_NOT_IMPLEMENTED; 1006 LogFlow(("%s: returned % Vrc\n", __FUNCTION__, rc));1006 LogFlow(("%s: returned %Rrc\n", __FUNCTION__, rc)); 1007 1007 return rc; 1008 1008 } … … 1011 1011 { 1012 1012 int rc = VERR_NOT_IMPLEMENTED; 1013 LogFlow(("%s: returned % Vrc\n", __FUNCTION__, rc));1013 LogFlow(("%s: returned %Rrc\n", __FUNCTION__, rc)); 1014 1014 return rc; 1015 1015 } … … 1018 1018 { 1019 1019 int rc = VERR_NOT_IMPLEMENTED; 1020 LogFlow(("%s: returned % Vrc\n", __FUNCTION__, rc));1020 LogFlow(("%s: returned %Rrc\n", __FUNCTION__, rc)); 1021 1021 return rc; 1022 1022 } … … 1025 1025 { 1026 1026 int rc = VERR_NOT_IMPLEMENTED; 1027 LogFlow(("%s: returned % Vrc\n", __FUNCTION__, rc));1027 LogFlow(("%s: returned %Rrc\n", __FUNCTION__, rc)); 1028 1028 return rc; 1029 1029 } … … 1038 1038 { 1039 1039 int rc = VERR_NOT_IMPLEMENTED; 1040 LogFlowFunc(("returns % Vrc\n", rc));1040 LogFlowFunc(("returns %Rrc\n", rc)); 1041 1041 return rc; 1042 1042 } … … 1046 1046 { 1047 1047 int rc = VERR_NOT_IMPLEMENTED; 1048 LogFlowFunc(("returns % Vrc\n", rc));1048 LogFlowFunc(("returns %Rrc\n", rc)); 1049 1049 return rc; 1050 1050 } -
trunk/src/VBox/Devices/Storage/VBoxHDD-new.cpp
r11266 r11284 200 200 if (RT_FAILURE(rc) || !pfnHDDFormatLoad) 201 201 { 202 LogFunc(("error resolving the entry point %s in plugin %s, rc=% Vrc, pfnHDDFormat=%#p\n", VBOX_HDDFORMAT_LOAD_NAME, pszPluginName, rc, pfnHDDFormatLoad));202 LogFunc(("error resolving the entry point %s in plugin %s, rc=%Rrc, pfnHDDFormat=%#p\n", VBOX_HDDFORMAT_LOAD_NAME, pszPluginName, rc, pfnHDDFormatLoad)); 203 203 if (RT_SUCCESS(rc)) 204 204 rc = VERR_SYMBOL_NOT_FOUND; … … 718 718 if (RT_FAILURE(rc) || !pfnHDDFormatLoad) 719 719 { 720 LogFunc(("error resolving the entry point %s in plugin %s, rc=% Vrc, pfnHDDFormat=%#p\n", VBOX_HDDFORMAT_LOAD_NAME, pPluginDirEntry->szName, rc, pfnHDDFormatLoad));720 LogFunc(("error resolving the entry point %s in plugin %s, rc=%Rrc, pfnHDDFormat=%#p\n", VBOX_HDDFORMAT_LOAD_NAME, pPluginDirEntry->szName, rc, pfnHDDFormatLoad)); 721 721 if (RT_SUCCESS(rc)) 722 722 rc = VERR_SYMBOL_NOT_FOUND; … … 758 758 } while (0); 759 759 760 LogFlowFunc(("returns % Vrc *pcEntriesUsed=%u\n", rc, cEntries));760 LogFlowFunc(("returns %Rrc *pcEntriesUsed=%u\n", rc, cEntries)); 761 761 *pcEntriesUsed = cEntries; 762 762 return rc; … … 827 827 } while (0); 828 828 829 LogFlowFunc(("returns % Vrc (pDisk=%#p)\n", rc, pDisk));829 LogFlowFunc(("returns %Rrc (pDisk=%#p)\n", rc, pDisk)); 830 830 return rc; 831 831 } … … 962 962 if (RT_FAILURE(rc) || !pfnHDDFormatLoad) 963 963 { 964 LogFunc(("error resolving the entry point %s in plugin %s, rc=% Vrc, pfnHDDFormat=%#p\n", VBOX_HDDFORMAT_LOAD_NAME, pPluginDirEntry->szName, rc, pfnHDDFormatLoad));964 LogFunc(("error resolving the entry point %s in plugin %s, rc=%Rrc, pfnHDDFormat=%#p\n", VBOX_HDDFORMAT_LOAD_NAME, pPluginDirEntry->szName, rc, pfnHDDFormatLoad)); 965 965 if (RT_SUCCESS(rc)) 966 966 rc = VERR_SYMBOL_NOT_FOUND; … … 1017 1017 } while (0); 1018 1018 1019 LogFlowFunc(("returns % Vrc *ppszFormat=\"%s\"\n", rc, *ppszFormat));1019 LogFlowFunc(("returns %Rrc *ppszFormat=\"%s\"\n", rc, *ppszFormat)); 1020 1020 return rc; 1021 1021 } … … 1238 1238 } 1239 1239 1240 LogFlowFunc(("returns % Vrc\n", rc));1240 LogFlowFunc(("returns %Rrc\n", rc)); 1241 1241 return rc; 1242 1242 } … … 1443 1443 pfnProgress(NULL /* WARNING! pVM=NULL */, 100, pvUser); 1444 1444 1445 LogFlowFunc(("returns % Vrc\n", rc));1445 LogFlowFunc(("returns %Rrc\n", rc)); 1446 1446 return rc; 1447 1447 } … … 1607 1607 pfnProgress(NULL /* WARNING! pVM=NULL */, 100, pvUser); 1608 1608 1609 LogFlowFunc(("returns % Vrc\n", rc));1609 LogFlowFunc(("returns %Rrc\n", rc)); 1610 1610 return rc; 1611 1611 } … … 1826 1826 pfnProgress(NULL /* WARNING! pVM=NULL */, 100, pvUser); 1827 1827 1828 LogFlowFunc(("returns % Vrc\n", rc));1828 LogFlowFunc(("returns %Rrc\n", rc)); 1829 1829 return rc; 1830 1830 } … … 2066 2066 pfnProgress(NULL /* WARNING! pVM=NULL */, 100, pvUser); 2067 2067 2068 LogFlowFunc(("returns % Vrc\n", rc));2068 LogFlowFunc(("returns %Rrc\n", rc)); 2069 2069 return rc; 2070 2070 } … … 2162 2162 } while (0); 2163 2163 2164 LogFlowFunc(("returns % Vrc\n", rc));2164 LogFlowFunc(("returns %Rrc\n", rc)); 2165 2165 return rc; 2166 2166 } … … 2206 2206 } while (0); 2207 2207 2208 LogFlowFunc(("returns % Vrc\n", rc));2208 LogFlowFunc(("returns %Rrc\n", rc)); 2209 2209 return rc; 2210 2210 } … … 2251 2251 } while (0); 2252 2252 2253 LogFlowFunc(("returns % Vrc\n", rc));2253 LogFlowFunc(("returns %Rrc\n", rc)); 2254 2254 return rc; 2255 2255 } … … 2298 2298 } while (0); 2299 2299 2300 LogFlowFunc(("returns % Vrc\n", rc));2300 LogFlowFunc(("returns %Rrc\n", rc)); 2301 2301 return rc; 2302 2302 } … … 2327 2327 } while (0); 2328 2328 2329 LogFlowFunc(("returns % Vrc\n", rc));2329 LogFlowFunc(("returns %Rrc\n", rc)); 2330 2330 return rc; 2331 2331 } … … 2485 2485 } while (0); 2486 2486 2487 LogFlowFunc(("%s: % Vrc (PCHS=%u/%u/%u)\n", __FUNCTION__, rc,2487 LogFlowFunc(("%s: %Rrc (PCHS=%u/%u/%u)\n", __FUNCTION__, rc, 2488 2488 pDisk->PCHSGeometry.cCylinders, pDisk->PCHSGeometry.cHeads, 2489 2489 pDisk->PCHSGeometry.cSectors)); … … 2583 2583 } while (0); 2584 2584 2585 LogFlowFunc(("returns % Vrc\n", rc));2585 LogFlowFunc(("returns %Rrc\n", rc)); 2586 2586 return rc; 2587 2587 } … … 2631 2631 } while (0); 2632 2632 2633 LogFlowFunc((": % Vrc (LCHS=%u/%u/%u)\n", rc,2633 LogFlowFunc((": %Rrc (LCHS=%u/%u/%u)\n", rc, 2634 2634 pDisk->LCHSGeometry.cCylinders, pDisk->LCHSGeometry.cHeads, 2635 2635 pDisk->LCHSGeometry.cSectors)); … … 2729 2729 } while (0); 2730 2730 2731 LogFlowFunc(("returns % Vrc\n", rc));2731 LogFlowFunc(("returns %Rrc\n", rc)); 2732 2732 return rc; 2733 2733 } … … 2766 2766 } while (0); 2767 2767 2768 LogFlowFunc(("returns % Vrc uVersion=%#x\n", rc, *puVersion));2768 LogFlowFunc(("returns %Rrc uVersion=%#x\n", rc, *puVersion)); 2769 2769 return rc; 2770 2770 } … … 2810 2810 } while (0); 2811 2811 2812 LogFlowFunc(("returns % Vrc uenmType=%u\n", rc, *penmType));2812 LogFlowFunc(("returns %Rrc uenmType=%u\n", rc, *penmType)); 2813 2813 return rc; 2814 2814 } … … 2856 2856 } while (0); 2857 2857 2858 LogFlowFunc(("returns % Vrc\n", rc));2858 LogFlowFunc(("returns %Rrc\n", rc)); 2859 2859 return rc; 2860 2860 } … … 2893 2893 } while (0); 2894 2894 2895 LogFlowFunc(("returns % Vrc uImageFlags=%#x\n", rc, *puImageFlags));2895 LogFlowFunc(("returns %Rrc uImageFlags=%#x\n", rc, *puImageFlags)); 2896 2896 return rc; 2897 2897 } … … 2930 2930 } while (0); 2931 2931 2932 LogFlowFunc(("returns % Vrc uOpenFlags=%#x\n", rc, *puOpenFlags));2932 LogFlowFunc(("returns %Rrc uOpenFlags=%#x\n", rc, *puOpenFlags)); 2933 2933 return rc; 2934 2934 } … … 2969 2969 } while (0); 2970 2970 2971 LogFlowFunc(("returns % Vrc\n", rc));2971 LogFlowFunc(("returns %Rrc\n", rc)); 2972 2972 return rc; 2973 2973 } … … 3024 3024 } while (0); 3025 3025 3026 LogFlowFunc(("returns % Vrc, pszFilename=\"%s\"\n", rc, pszFilename));3026 LogFlowFunc(("returns %Rrc, pszFilename=\"%s\"\n", rc, pszFilename)); 3027 3027 return rc; 3028 3028 } … … 3067 3067 } while (0); 3068 3068 3069 LogFlowFunc(("returns % Vrc, pszComment=\"%s\"\n", rc, pszComment));3069 LogFlowFunc(("returns %Rrc, pszComment=\"%s\"\n", rc, pszComment)); 3070 3070 return rc; 3071 3071 } … … 3104 3104 } while (0); 3105 3105 3106 LogFlowFunc(("returns % Vrc\n", rc));3106 LogFlowFunc(("returns %Rrc\n", rc)); 3107 3107 return rc; 3108 3108 } … … 3140 3140 } while (0); 3141 3141 3142 LogFlowFunc(("returns % Vrc, Uuid={%Vuuid}\n", rc, pUuid));3142 LogFlowFunc(("returns %Rrc, Uuid={%Vuuid}\n", rc, pUuid)); 3143 3143 return rc; 3144 3144 } … … 3181 3181 } while (0); 3182 3182 3183 LogFlowFunc(("returns % Vrc\n", rc));3183 LogFlowFunc(("returns %Rrc\n", rc)); 3184 3184 return rc; 3185 3185 } … … 3217 3217 } while (0); 3218 3218 3219 LogFlowFunc(("returns % Vrc, Uuid={%Vuuid}\n", rc, pUuid));3219 LogFlowFunc(("returns %Rrc, Uuid={%Vuuid}\n", rc, pUuid)); 3220 3220 return rc; 3221 3221 } … … 3260 3260 } while (0); 3261 3261 3262 LogFlowFunc(("returns % Vrc\n", rc));3262 LogFlowFunc(("returns %Rrc\n", rc)); 3263 3263 return rc; 3264 3264 } … … 3296 3296 } while (0); 3297 3297 3298 LogFlowFunc(("returns % Vrc, Uuid={%Vuuid}\n", rc, pUuid));3298 LogFlowFunc(("returns %Rrc, Uuid={%Vuuid}\n", rc, pUuid)); 3299 3299 return rc; 3300 3300 } … … 3338 3338 } while (0); 3339 3339 3340 LogFlowFunc(("returns % Vrc\n", rc));3340 LogFlowFunc(("returns %Rrc\n", rc)); 3341 3341 return rc; 3342 3342 } … … 3400 3400 } while (0); 3401 3401 3402 LogFlowFunc(("returns % Vrc, fAIOSupported=%u\n", rc, *pfAIOSupported));3402 LogFlowFunc(("returns %Rrc, fAIOSupported=%u\n", rc, *pfAIOSupported)); 3403 3403 return rc; 3404 3404 } … … 3472 3472 } while (0); 3473 3473 3474 LogFlowFunc(("returns % Vrc\n", rc));3474 LogFlowFunc(("returns %Rrc\n", rc)); 3475 3475 return rc; 3476 3476 } … … 3527 3527 } while (0); 3528 3528 3529 LogFlowFunc(("returns % Vrc\n", rc));3530 return rc; 3531 3532 } 3533 3529 LogFlowFunc(("returns %Rrc\n", rc)); 3530 return rc; 3531 3532 } 3533 -
trunk/src/VBox/Devices/Storage/VBoxHDD.cpp
r11269 r11284 115 115 PVDIDISK pThis = PDMIMEDIA_2_VDIDISK(pInterface); 116 116 int rc = VDIDiskSetLCHSGeometry(pThis, pLCHSGeometry); 117 LogFlow(("%s: returns % Vrc (%d,%d,%d)\n", __FUNCTION__, rc, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));117 LogFlow(("%s: returns %Rrc (%d,%d,%d)\n", __FUNCTION__, rc, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors)); 118 118 return rc; 119 119 } … … 134 134 "%.*Vhxd\n", 135 135 off, pvBuf, cbRead, cbRead, pvBuf)); 136 LogFlow(("vdiRead: returns % Vrc\n", rc));136 LogFlow(("vdiRead: returns %Rrc\n", rc)); 137 137 return rc; 138 138 } … … 152 152 off, pvBuf, cbWrite, cbWrite, pvBuf)); 153 153 int rc = VDIDiskWrite(pThis, off, pvBuf, cbWrite); 154 LogFlow(("vdiWrite: returns % Vrc\n", rc));154 LogFlow(("vdiWrite: returns %Rrc\n", rc)); 155 155 return rc; 156 156 } … … 168 168 VDIFlushImage(pThis->pLast); 169 169 int rc = VINF_SUCCESS; 170 LogFlow(("vdiFlush: returns % Vrc\n", rc));170 LogFlow(("vdiFlush: returns %Rrc\n", rc)); 171 171 return rc; 172 172 } … … 178 178 PVDIDISK pThis = PDMIMEDIA_2_VDIDISK(pInterface); 179 179 int rc = VDIDiskGetImageUuid(pThis, 0, pUuid); 180 LogFlow(("vdiGetUuid: returns % Vrc ({%Vuuid})\n", rc, pUuid));180 LogFlow(("vdiGetUuid: returns %Rrc ({%Vuuid})\n", rc, pUuid)); 181 181 return rc; 182 182 } … … 377 377 iLevel, pszName, VDIDiskIsReadOnly(pThis) ? "read-only" : "read-write")); 378 378 else 379 AssertMsgFailed(("Failed to open image '%s' rc=% Vrc\n", pszName, rc));379 AssertMsgFailed(("Failed to open image '%s' rc=%Rrc\n", pszName, rc)); 380 380 MMR3HeapFree(pszName); 381 381 -
trunk/src/VBox/Devices/Storage/VDICore.cpp
r11266 r11284 560 560 pfnProgress(NULL /* WARNING! pVM=NULL */, 100, pvUser); 561 561 562 Log(("vdiCreateImage: done, filename=\"%s\", rc=% Vrc\n", pszFilename, rc));562 Log(("vdiCreateImage: done, filename=\"%s\", rc=%Rrc\n", pszFilename, rc)); 563 563 564 564 return rc; … … 796 796 RTFileClose(pImage->File); 797 797 RTMemFree(pImage); 798 Log(("vdiOpenImage: failed, filename=\"%s\", rc=% Vrc\n", pszFilename, rc));798 Log(("vdiOpenImage: failed, filename=\"%s\", rc=%Rrc\n", pszFilename, rc)); 799 799 return rc; 800 800 } … … 833 833 } 834 834 } 835 AssertMsgRC(rc, ("vdiUpdateHeader failed, filename=\"%s\" rc=% Vrc\n", pImage->szFilename, rc));835 AssertMsgRC(rc, ("vdiUpdateHeader failed, filename=\"%s\" rc=%Rrc\n", pImage->szFilename, rc)); 836 836 return rc; 837 837 } … … 856 856 sizeof(VDIIMAGEBLOCKPOINTER), 857 857 NULL); 858 AssertMsgRC(rc, ("vdiUpdateBlockInfo failed to update block=%u, filename=\"%s\", rc=% Vrc\n",858 AssertMsgRC(rc, ("vdiUpdateBlockInfo failed to update block=%u, filename=\"%s\", rc=%Rrc\n", 859 859 uBlock, pImage->szFilename, rc)); 860 860 } … … 878 878 sizeof(VDIIMAGEBLOCKPOINTER) * getImageBlocks(&pImage->Header), 879 879 NULL); 880 AssertMsgRC(rc, ("vdiUpdateBlocks failed, filename=\"%s\", rc=% Vrc\n",880 AssertMsgRC(rc, ("vdiUpdateBlocks failed, filename=\"%s\", rc=%Rrc\n", 881 881 pImage->szFilename, rc)); 882 882 } … … 955 955 /* Save header. */ 956 956 int rc = vdiUpdateHeader(pImage); 957 AssertMsgRC(rc, ("vdiUpdateHeader() failed, filename=\"%s\", rc=% Vrc\n",957 AssertMsgRC(rc, ("vdiUpdateHeader() failed, filename=\"%s\", rc=%Rrc\n", 958 958 pImage->szFilename, rc)); 959 959 RTFileFlush(pImage->File); … … 1001 1001 rc = RTFileRead(pImage->File, pvBuf, cbToRead, NULL); 1002 1002 if (RT_FAILURE(rc)) 1003 Log(("vdiReadInBlock: rc=% Vrc filename=\"%s\" uBlock=%u offRead=%u cbToRead=%u u64Offset=%llu\n",1003 Log(("vdiReadInBlock: rc=%Rrc filename=\"%s\" uBlock=%u offRead=%u cbToRead=%u u64Offset=%llu\n", 1004 1004 rc, pImage->szFilename, uBlock, offRead, cbToRead, u64Offset)); 1005 1005 return rc; … … 1104 1104 if (RT_FAILURE(rc)) 1105 1105 { 1106 Log(("vdiFillBlockByZeroes: seek rc=% Vrc filename=\"%s\" uBlock=%u u64Offset=%llu\n",1106 Log(("vdiFillBlockByZeroes: seek rc=%Rrc filename=\"%s\" uBlock=%u u64Offset=%llu\n", 1107 1107 rc, pImage->szFilename, uBlock, u64Offset)); 1108 1108 return rc; … … 1123 1123 if (RT_FAILURE(rc)) 1124 1124 { 1125 Log(("vdiFillBlockByZeroes: write rc=% Vrc filename=\"%s\" uBlock=%u u64Offset=%llu cbFill=%u to_fill=%u\n",1125 Log(("vdiFillBlockByZeroes: write rc=%Rrc filename=\"%s\" uBlock=%u u64Offset=%llu cbFill=%u to_fill=%u\n", 1126 1126 rc, pImage->szFilename, uBlock, u64Offset, cbFill, to_fill)); 1127 1127 break; … … 1180 1180 if (RT_FAILURE(rc)) 1181 1181 { 1182 Log(("vdiWriteInBlock: set size rc=% Vrc filename=\"%s\" uBlock=%u u64Size=%llu\n",1182 Log(("vdiWriteInBlock: set size rc=%Rrc filename=\"%s\" uBlock=%u u64Size=%llu\n", 1183 1183 rc, pImage->szFilename, uBlock, u64Size)); 1184 1184 return rc; … … 1215 1215 rc = RTFileWrite(pImage->File, pvBuf, cbToWrite, NULL); 1216 1216 if (RT_FAILURE(rc)) 1217 Log(("vdiWriteInBlock: write rc=% Vrc filename=\"%s\" uBlock=%u offWrite=%u u64Offset=%llu cbToWrite=%u\n",1217 Log(("vdiWriteInBlock: write rc=%Rrc filename=\"%s\" uBlock=%u offWrite=%u u64Offset=%llu cbToWrite=%u\n", 1218 1218 rc, pImage->szFilename, uBlock, offWrite, u64Offset, cbToWrite)); 1219 1219 } 1220 1220 else 1221 Log(("vdiWriteInBlock: seek rc=% Vrc filename=\"%s\" uBlock=%u offWrite=%u u64Offset=%llu\n",1221 Log(("vdiWriteInBlock: seek rc=%Rrc filename=\"%s\" uBlock=%u offWrite=%u u64Offset=%llu\n", 1222 1222 rc, pImage->szFilename, uBlock, offWrite, u64Offset)); 1223 1223 … … 1641 1641 { 1642 1642 rc = rc2; 1643 Log(("vdiCommitToImage: set size (truncate) rc=% Vrc filename=\"%s\"\n",1643 Log(("vdiCommitToImage: set size (truncate) rc=%Rrc filename=\"%s\"\n", 1644 1644 rc, pImage->szFilename)); 1645 1645 } … … 1650 1650 { 1651 1651 rc = rc2; 1652 Log(("vdiCommitToImage: update blocks and header rc=% Vrc filename=\"%s\"\n",1652 Log(("vdiCommitToImage: update blocks and header rc=%Rrc filename=\"%s\"\n", 1653 1653 rc, pImage->szFilename)); 1654 1654 } … … 1661 1661 } 1662 1662 1663 Log(("vdiCommitToImage: done, rc=% Vrc\n", rc));1663 Log(("vdiCommitToImage: done, rc=%Rrc\n", rc)); 1664 1664 1665 1665 return rc; … … 1730 1730 } 1731 1731 1732 LogFlow(("VDICheckImage: returns % Vrc\n", rc));1732 LogFlow(("VDICheckImage: returns %Rrc\n", rc)); 1733 1733 return rc; 1734 1734 } … … 1769 1769 if (RT_FAILURE(rc)) 1770 1770 { 1771 Log(("VDISetImageComment: vdiOpenImage rc=% Vrc filename=\"%s\"!\n", rc, pszFilename));1771 Log(("VDISetImageComment: vdiOpenImage rc=%Rrc filename=\"%s\"!\n", rc, pszFilename)); 1772 1772 return rc; 1773 1773 } … … 1785 1785 /* write out new the header */ 1786 1786 rc = vdiUpdateHeader(pImage); 1787 AssertMsgRC(rc, ("vdiUpdateHeader() failed, filename=\"%s\", rc=% Vrc\n",1787 AssertMsgRC(rc, ("vdiUpdateHeader() failed, filename=\"%s\", rc=%Rrc\n", 1788 1788 pImage->szFilename, rc)); 1789 1789 } … … 1833 1833 int rc = vdiCreateImage(pszFilename, enmType, VDI_IMAGE_FLAGS_DEFAULT, cbSize, pszComment, NULL, 1834 1834 pfnProgress, pvUser); 1835 LogFlow(("VDICreateBaseImage: returns % Vrc for filename=\"%s\"\n", rc, pszFilename));1835 LogFlow(("VDICreateBaseImage: returns %Rrc for filename=\"%s\"\n", rc, pszFilename)); 1836 1836 return rc; 1837 1837 } … … 1873 1873 vdiCloseImage(pParent); 1874 1874 } 1875 LogFlow(("VDICreateDifferenceImage: returns % Vrc for filename=\"%s\"\n", rc, pszFilename));1875 LogFlow(("VDICreateDifferenceImage: returns %Rrc for filename=\"%s\"\n", rc, pszFilename)); 1876 1876 return rc; 1877 1877 } … … 1898 1898 rc = RTFileDelete(pszFilename); 1899 1899 1900 LogFlow(("VDIDeleteImage: returns % Vrc for filename=\"%s\"\n", rc, pszFilename));1900 LogFlow(("VDIDeleteImage: returns %Rrc for filename=\"%s\"\n", rc, pszFilename)); 1901 1901 return rc; 1902 1902 } … … 1941 1941 if (RT_FAILURE(rc)) 1942 1942 { 1943 Log(("VDICopyImage: src image \"%s\" open failed rc=% Vrc\n", pszSrcFilename, rc));1943 Log(("VDICopyImage: src image \"%s\" open failed rc=%Rrc\n", pszSrcFilename, rc)); 1944 1944 return rc; 1945 1945 } … … 2065 2065 vdiCloseImage(pImage); 2066 2066 2067 LogFlow(("VDICopyImage: returns % Vrc for pszSrcFilename=\"%s\" pszDstFilename=\"%s\"\n",2067 LogFlow(("VDICopyImage: returns %Rrc for pszSrcFilename=\"%s\" pszDstFilename=\"%s\"\n", 2068 2068 rc, pszSrcFilename, pszDstFilename)); 2069 2069 return rc; … … 2094 2094 if (RT_FAILURE(rc)) 2095 2095 { 2096 Log(("VDIShrinkImage: vdiOpenImage rc=% Vrc filename=\"%s\"\n", rc, pszFilename));2096 Log(("VDIShrinkImage: vdiOpenImage rc=%Rrc filename=\"%s\"\n", rc, pszFilename)); 2097 2097 return rc; 2098 2098 } … … 2116 2116 if (RT_FAILURE(rc)) 2117 2117 { 2118 Log(("VDIShrinkImage: RTFileGetSize rc=% Vrc for file=\"%s\"\n", rc, pszFilename));2118 Log(("VDIShrinkImage: RTFileGetSize rc=%Rrc for file=\"%s\"\n", rc, pszFilename)); 2119 2119 vdiCloseImage(pImage); 2120 2120 return rc; … … 2184 2184 if (RT_FAILURE(rc)) 2185 2185 { 2186 Log(("VDIShrinkImage: seek rc=% Vrc filename=\"%s\" uBlock=%u cBlocks=%u cBlocksAllocated=%u cBlocksAllocated2=%u cbData=%llu\n",2186 Log(("VDIShrinkImage: seek rc=%Rrc filename=\"%s\" uBlock=%u cBlocks=%u cBlocksAllocated=%u cBlocksAllocated2=%u cbData=%llu\n", 2187 2187 rc, pImage->szFilename, uBlock, cBlocks, cBlocksAllocated, cBlocksAllocated2, cbData)); 2188 2188 break; … … 2191 2191 if (RT_FAILURE(rc)) 2192 2192 { 2193 Log(("VDIShrinkImage: read rc=% Vrc filename=\"%s\" cbBlock=%u uBlock=%u cBlocks=%u cBlocksAllocated=%u cBlocksAllocated2=%u cbData=%llu\n",2193 Log(("VDIShrinkImage: read rc=%Rrc filename=\"%s\" cbBlock=%u uBlock=%u cBlocks=%u cBlocksAllocated=%u cBlocksAllocated2=%u cbData=%llu\n", 2194 2194 rc, pImage->szFilename, cbBlock, uBlock, cBlocks, cBlocksAllocated, cBlocksAllocated2, cbData)); 2195 2195 break; … … 2209 2209 if (RT_FAILURE(rc)) 2210 2210 { 2211 Log(("VDIShrinkImage: seek(2) rc=% Vrc filename=\"%s\" uBlockWrite=%u cBlocks=%u cBlocksAllocated=%u cBlocksAllocated2=%u cbData=%llu\n",2211 Log(("VDIShrinkImage: seek(2) rc=%Rrc filename=\"%s\" uBlockWrite=%u cBlocks=%u cBlocksAllocated=%u cBlocksAllocated2=%u cbData=%llu\n", 2212 2212 rc, pImage->szFilename, uBlockWrite, cBlocks, cBlocksAllocated, cBlocksAllocated2, cbData)); 2213 2213 break; … … 2216 2216 if (RT_FAILURE(rc)) 2217 2217 { 2218 Log(("VDIShrinkImage: write rc=% Vrc filename=\"%s\" cbBlock=%u uBlockWrite=%u cBlocks=%u cBlocksAllocated=%u cBlocksAllocated2=%u cbData=%llu\n",2218 Log(("VDIShrinkImage: write rc=%Rrc filename=\"%s\" cbBlock=%u uBlockWrite=%u cBlocks=%u cBlocksAllocated=%u cBlocksAllocated2=%u cbData=%llu\n", 2219 2219 rc, pImage->szFilename, cbBlock, uBlockWrite, cBlocks, cBlocksAllocated, cBlocksAllocated2, cbData)); 2220 2220 break; … … 2257 2257 pImage->offStartData + ((uint64_t)uBlockWrite << pImage->uShiftIndex2Offset)); 2258 2258 if (RT_FAILURE(rc)) 2259 Log(("VDIShrinkImage: RTFileSetSize rc=% Vrc\n", rc));2259 Log(("VDIShrinkImage: RTFileSetSize rc=%Rrc\n", rc)); 2260 2260 } 2261 2261 cBlocksAllocated2 = uBlockWrite; … … 2283 2283 vdiCloseImage(pImage); 2284 2284 2285 LogFlow(("VDIShrinkImage: returns % Vrc for filename=\"%s\"\n", rc, pszFilename));2285 LogFlow(("VDIShrinkImage: returns %Rrc for filename=\"%s\"\n", rc, pszFilename)); 2286 2286 return rc; 2287 2287 } … … 2312 2312 if (RT_FAILURE(rc)) 2313 2313 { 2314 Log(("VDIConvertImage: vdiOpenImage rc=% Vrc filename=\"%s\"\n", rc, pszFilename));2314 Log(("VDIConvertImage: vdiOpenImage rc=%Rrc filename=\"%s\"\n", rc, pszFilename)); 2315 2315 return rc; 2316 2316 } … … 2486 2486 vdiCloseImage(pImage); 2487 2487 2488 LogFlow(("VDIConvertImage: returns % Vrc for filename=\"%s\"\n", rc, pszFilename));2488 LogFlow(("VDIConvertImage: returns %Rrc for filename=\"%s\"\n", rc, pszFilename)); 2489 2489 return rc; 2490 2490 } … … 2521 2521 if (RT_FAILURE(rc)) 2522 2522 { 2523 Log(("VDIGetImageUUIDs: vdiOpenImage rc=% Vrc filename=\"%s\"\n", rc, pszFilename));2523 Log(("VDIGetImageUUIDs: vdiOpenImage rc=%Rrc filename=\"%s\"\n", rc, pszFilename)); 2524 2524 return rc; 2525 2525 } … … 2597 2597 if (RT_FAILURE(rc)) 2598 2598 { 2599 Log(("VDISetImageUUIDs: vdiOpenImage rc=% Vrc filename=\"%s\"\n", rc, pszFilename));2599 Log(("VDISetImageUUIDs: vdiOpenImage rc=%Rrc filename=\"%s\"\n", rc, pszFilename)); 2600 2600 return rc; 2601 2601 } … … 2618 2618 /* write out new header */ 2619 2619 rc = vdiUpdateHeader(pImage); 2620 AssertMsgRC(rc, ("vdiUpdateHeader() failed, filename=\"%s\", rc=% Vrc\n",2620 AssertMsgRC(rc, ("vdiUpdateHeader() failed, filename=\"%s\", rc=%Rrc\n", 2621 2621 pImage->szFilename, rc)); 2622 2622 } … … 2634 2634 /* write out new header */ 2635 2635 rc = vdiUpdateHeader(pImage); 2636 AssertMsgRC(rc, ("vdiUpdateHeader() failed, filename=\"%s\", rc=% Vrc\n",2636 AssertMsgRC(rc, ("vdiUpdateHeader() failed, filename=\"%s\", rc=%Rrc\n", 2637 2637 pImage->szFilename, rc)); 2638 2638 } … … 2681 2681 if (RT_FAILURE(rc)) 2682 2682 { 2683 Log(("VDIMergeImage: vdiOpenImage rc=% Vrc pstFilenameFrom=\"%s\"\n", rc, pszFilenameFrom));2683 Log(("VDIMergeImage: vdiOpenImage rc=%Rrc pstFilenameFrom=\"%s\"\n", rc, pszFilenameFrom)); 2684 2684 return rc; 2685 2685 } … … 2689 2689 if (RT_FAILURE(rc)) 2690 2690 { 2691 Log(("VDIMergeImage: vdiOpenImage rc=% Vrc pszFilenameTo=\"%s\"\n", rc, pszFilenameTo));2691 Log(("VDIMergeImage: vdiOpenImage rc=%Rrc pszFilenameTo=\"%s\"\n", rc, pszFilenameTo)); 2692 2692 vdiCloseImage(pImageFrom); 2693 2693 return rc; … … 2750 2750 vdiCloseImage(pImageTo); 2751 2751 2752 Log(("VDIMergeImage: done, returning with rc = % Vrc\n", rc));2752 Log(("VDIMergeImage: done, returning with rc = %Rrc\n", rc)); 2753 2753 return rc; 2754 2754 } … … 2969 2969 rc = VERR_VDI_GEOMETRY_NOT_SET; 2970 2970 2971 LogFlow(("%s: returns % Vrc\n", __FUNCTION__, rc));2971 LogFlow(("%s: returns %Rrc\n", __FUNCTION__, rc)); 2972 2972 return rc; 2973 2973 } … … 3008 3008 rc = vdiUpdateReadOnlyHeader(pDisk->pBase); 3009 3009 } 3010 LogFlow(("%s: returns % Vrc\n", __FUNCTION__, rc));3010 LogFlow(("%s: returns %Rrc\n", __FUNCTION__, rc)); 3011 3011 return rc; 3012 3012 } … … 3372 3372 #endif 3373 3373 3374 Log(("vdiChangeImageMode: Image \"%s\" mode change failed with rc=% Vrc, mode is %s\n",3374 Log(("vdiChangeImageMode: Image \"%s\" mode change failed with rc=%Rrc, mode is %s\n", 3375 3375 pImage->szFilename, rc, (pImage->fReadOnly) ? "read-only" : "read/write")); 3376 3376 … … 3466 3466 } 3467 3467 3468 LogFlow(("VDIDiskOpenImage: returns % Vrc\n", rc));3468 LogFlow(("VDIDiskOpenImage: returns %Rrc\n", rc)); 3469 3469 return rc; 3470 3470 } … … 3585 3585 if (RT_FAILURE(rc)) 3586 3586 { 3587 Log(("VDIDiskCommitLastDiff: can't switch previous image into r/w mode, rc=% Vrc\n", rc));3587 Log(("VDIDiskCommitLastDiff: can't switch previous image into r/w mode, rc=%Rrc\n", rc)); 3588 3588 return rc; 3589 3589 } … … 3601 3601 /* Failed! Close all images, can't work with VHDD at all. */ 3602 3602 VDIDiskCloseAllImages(pDisk); 3603 AssertMsgFailed(("Fatal: commit failed, rc=% Vrc\n", rc));3603 AssertMsgFailed(("Fatal: commit failed, rc=%Rrc\n", rc)); 3604 3604 } 3605 3605 … … 3651 3651 VDIDeleteImage(pszFilename); 3652 3652 } 3653 LogFlow(("VDIDiskCreateOpenDifferenceImage: returns % Vrc, filename=\"%s\"\n", rc, pszFilename));3653 LogFlow(("VDIDiskCreateOpenDifferenceImage: returns %Rrc, filename=\"%s\"\n", rc, pszFilename)); 3654 3654 return rc; 3655 3655 } -
trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp
r11266 r11284 648 648 break; 649 649 } 650 AssertMsgRC(rc, ("vdiUpdateHeader failed, filename=\"%s\" rc=% Vrc\n", pImage->pszFilename, rc));650 AssertMsgRC(rc, ("vdiUpdateHeader failed, filename=\"%s\" rc=%Rrc\n", pImage->pszFilename, rc)); 651 651 return rc; 652 652 } … … 667 667 sizeof(VDIIMAGEBLOCKPOINTER), 668 668 NULL); 669 AssertMsgRC(rc, ("vdiUpdateBlockInfo failed to update block=%u, filename=\"%s\", rc=% Vrc\n",669 AssertMsgRC(rc, ("vdiUpdateBlockInfo failed to update block=%u, filename=\"%s\", rc=%Rrc\n", 670 670 uBlock, pImage->pszFilename, rc)); 671 671 } … … 682 682 /* Save header. */ 683 683 int rc = vdiUpdateHeader(pImage); 684 AssertMsgRC(rc, ("vdiUpdateHeader() failed, filename=\"%s\", rc=% Vrc\n",684 AssertMsgRC(rc, ("vdiUpdateHeader() failed, filename=\"%s\", rc=%Rrc\n", 685 685 pImage->pszFilename, rc)); 686 686 RTFileFlush(pImage->File); … … 742 742 743 743 out: 744 LogFlowFunc(("returns % Vrc\n", rc));744 LogFlowFunc(("returns %Rrc\n", rc)); 745 745 return rc; 746 746 } … … 791 791 792 792 out: 793 LogFlowFunc(("returns % Vrc (pBackendData=%#p)\n", rc, *ppBackendData));793 LogFlowFunc(("returns %Rrc (pBackendData=%#p)\n", rc, *ppBackendData)); 794 794 return rc; 795 795 } … … 860 860 861 861 out: 862 LogFlowFunc(("returns % Vrc (pBackendData=%#p)\n", rc, *ppBackendData));862 LogFlowFunc(("returns %Rrc (pBackendData=%#p)\n", rc, *ppBackendData)); 863 863 return rc; 864 864 } … … 905 905 906 906 out: 907 LogFlowFunc(("returns % Vrc\n", rc));907 LogFlowFunc(("returns %Rrc\n", rc)); 908 908 return rc; 909 909 } … … 921 921 vdiFreeImage(pImage, fDelete); 922 922 923 LogFlowFunc(("returns % Vrc\n", rc));923 LogFlowFunc(("returns %Rrc\n", rc)); 924 924 return rc; 925 925 } … … 974 974 975 975 out: 976 LogFlowFunc(("returns % Vrc\n", rc));976 LogFlowFunc(("returns %Rrc\n", rc)); 977 977 return rc; 978 978 } … … 1078 1078 1079 1079 out: 1080 LogFlowFunc(("returns % Vrc\n", rc));1080 LogFlowFunc(("returns %Rrc\n", rc)); 1081 1081 return rc; 1082 1082 } … … 1092 1092 1093 1093 vdiFlushImage(pImage); 1094 LogFlowFunc(("returns % Vrc\n", rc));1094 LogFlowFunc(("returns %Rrc\n", rc)); 1095 1095 return rc; 1096 1096 } … … 1131 1131 rc = VERR_VDI_NOT_OPENED; 1132 1132 1133 LogFlowFunc(("returns % Vrc enmImageType=%u\n", rc, *penmImageType));1133 LogFlowFunc(("returns %Rrc enmImageType=%u\n", rc, *penmImageType)); 1134 1134 return rc; 1135 1135 } … … 1200 1200 rc = VERR_VDI_NOT_OPENED; 1201 1201 1202 LogFlowFunc(("returns % Vrc (PCHS=%u/%u/%u)\n", rc, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));1202 LogFlowFunc(("returns %Rrc (PCHS=%u/%u/%u)\n", rc, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors)); 1203 1203 return rc; 1204 1204 } … … 1229 1229 1230 1230 out: 1231 LogFlowFunc(("returns % Vrc\n", rc));1231 LogFlowFunc(("returns %Rrc\n", rc)); 1232 1232 return rc; 1233 1233 } … … 1265 1265 rc = VERR_VDI_NOT_OPENED; 1266 1266 1267 LogFlowFunc(("returns % Vrc (LCHS=%u/%u/%u)\n", rc, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));1267 LogFlowFunc(("returns %Rrc (LCHS=%u/%u/%u)\n", rc, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors)); 1268 1268 return rc; 1269 1269 } … … 1305 1305 1306 1306 out: 1307 LogFlowFunc(("returns % Vrc\n", rc));1307 LogFlowFunc(("returns %Rrc\n", rc)); 1308 1308 return rc; 1309 1309 } … … 1367 1367 1368 1368 out: 1369 LogFlowFunc(("returns % Vrc\n", rc));1369 LogFlowFunc(("returns %Rrc\n", rc)); 1370 1370 return rc; 1371 1371 } … … 1396 1396 rc = VERR_VDI_NOT_OPENED; 1397 1397 1398 LogFlowFunc(("returns % Vrc comment=\"%s\"\n", rc, pszComment));1398 LogFlowFunc(("returns %Rrc comment=\"%s\"\n", rc, pszComment)); 1399 1399 return rc; 1400 1400 } … … 1444 1444 1445 1445 out: 1446 LogFlowFunc(("returns % Vrc\n", rc));1446 LogFlowFunc(("returns %Rrc\n", rc)); 1447 1447 return rc; 1448 1448 } … … 1465 1465 rc = VERR_VDI_NOT_OPENED; 1466 1466 1467 LogFlowFunc(("returns % Vrc (%Vuuid)\n", rc, pUuid));1467 LogFlowFunc(("returns %Rrc (%Vuuid)\n", rc, pUuid)); 1468 1468 return rc; 1469 1469 } … … 1499 1499 rc = VERR_VDI_NOT_OPENED; 1500 1500 1501 LogFlowFunc(("returns % Vrc\n", rc));1501 LogFlowFunc(("returns %Rrc\n", rc)); 1502 1502 return rc; 1503 1503 } … … 1520 1520 rc = VERR_VDI_NOT_OPENED; 1521 1521 1522 LogFlowFunc(("returns % Vrc (%Vuuid)\n", rc, pUuid));1522 LogFlowFunc(("returns %Rrc (%Vuuid)\n", rc, pUuid)); 1523 1523 return rc; 1524 1524 } … … 1554 1554 rc = VERR_VDI_NOT_OPENED; 1555 1555 1556 LogFlowFunc(("returns % Vrc\n", rc));1556 LogFlowFunc(("returns %Rrc\n", rc)); 1557 1557 return rc; 1558 1558 } … … 1575 1575 rc = VERR_VDI_NOT_OPENED; 1576 1576 1577 LogFlowFunc(("returns % Vrc (%Vuuid)\n", rc, pUuid));1577 LogFlowFunc(("returns %Rrc (%Vuuid)\n", rc, pUuid)); 1578 1578 return rc; 1579 1579 } … … 1609 1609 rc = VERR_VDI_NOT_OPENED; 1610 1610 1611 LogFlowFunc(("returns % Vrc\n", rc));1611 LogFlowFunc(("returns %Rrc\n", rc)); 1612 1612 return rc; 1613 1613 } … … 1630 1630 rc = VERR_VDI_NOT_OPENED; 1631 1631 1632 LogFlowFunc(("returns % Vrc (%Vuuid)\n", rc, pUuid));1632 LogFlowFunc(("returns %Rrc (%Vuuid)\n", rc, pUuid)); 1633 1633 return rc; 1634 1634 } … … 1661 1661 rc = VERR_VDI_NOT_OPENED; 1662 1662 1663 LogFlowFunc(("returns % Vrc\n", rc));1663 LogFlowFunc(("returns %Rrc\n", rc)); 1664 1664 return rc; 1665 1665 } … … 1730 1730 { 1731 1731 int rc = VERR_NOT_IMPLEMENTED; 1732 LogFlow(("%s: returned % Vrc\n", __FUNCTION__, rc));1732 LogFlow(("%s: returned %Rrc\n", __FUNCTION__, rc)); 1733 1733 return rc; 1734 1734 } … … 1737 1737 { 1738 1738 int rc = VERR_NOT_IMPLEMENTED; 1739 LogFlow(("%s: returned % Vrc\n", __FUNCTION__, rc));1739 LogFlow(("%s: returned %Rrc\n", __FUNCTION__, rc)); 1740 1740 return rc; 1741 1741 } … … 1744 1744 { 1745 1745 int rc = VERR_NOT_IMPLEMENTED; 1746 LogFlow(("%s: returned % Vrc\n", __FUNCTION__, rc));1746 LogFlow(("%s: returned %Rrc\n", __FUNCTION__, rc)); 1747 1747 return rc; 1748 1748 } … … 1751 1751 { 1752 1752 int rc = VERR_NOT_IMPLEMENTED; 1753 LogFlow(("%s: returned % Vrc\n", __FUNCTION__, rc));1753 LogFlow(("%s: returned %Rrc\n", __FUNCTION__, rc)); 1754 1754 return rc; 1755 1755 } … … 1758 1758 { 1759 1759 int rc = VERR_NOT_IMPLEMENTED; 1760 LogFlow(("%s: returned % Vrc\n", __FUNCTION__, rc));1760 LogFlow(("%s: returned %Rrc\n", __FUNCTION__, rc)); 1761 1761 return rc; 1762 1762 } … … 1771 1771 { 1772 1772 int rc = VERR_NOT_IMPLEMENTED; 1773 LogFlowFunc(("returns % Vrc\n", rc));1773 LogFlowFunc(("returns %Rrc\n", rc)); 1774 1774 return rc; 1775 1775 } … … 1779 1779 { 1780 1780 int rc = VERR_NOT_IMPLEMENTED; 1781 LogFlowFunc(("returns % Vrc\n", rc));1781 LogFlowFunc(("returns %Rrc\n", rc)); 1782 1782 return rc; 1783 1783 } -
trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp
r11266 r11284 3676 3676 3677 3677 out: 3678 LogFlowFunc(("returns % Vrc\n", rc));3678 LogFlowFunc(("returns %Rrc\n", rc)); 3679 3679 return rc; 3680 3680 } … … 3737 3737 3738 3738 out: 3739 LogFlowFunc(("returns % Vrc (pBackendData=%#p)\n", rc, *ppBackendData));3739 LogFlowFunc(("returns %Rrc (pBackendData=%#p)\n", rc, *ppBackendData)); 3740 3740 return rc; 3741 3741 } … … 3824 3824 3825 3825 out: 3826 LogFlowFunc(("returns % Vrc (pBackendData=%#p)\n", rc, *ppBackendData));3826 LogFlowFunc(("returns %Rrc (pBackendData=%#p)\n", rc, *ppBackendData)); 3827 3827 return rc; 3828 3828 } … … 4055 4055 if (apszNewLines) 4056 4056 RTMemTmpFree(apszNewLines); 4057 LogFlowFunc(("returns % Vrc\n", rc));4057 LogFlowFunc(("returns %Rrc\n", rc)); 4058 4058 return rc; 4059 4059 } … … 4071 4071 vmdkFreeImage(pImage, fDelete); 4072 4072 4073 LogFlowFunc(("returns % Vrc\n", rc));4073 LogFlowFunc(("returns %Rrc\n", rc)); 4074 4074 return rc; 4075 4075 } … … 4145 4145 4146 4146 out: 4147 LogFlowFunc(("returns % Vrc\n", rc));4147 LogFlowFunc(("returns %Rrc\n", rc)); 4148 4148 return rc; 4149 4149 } … … 4256 4256 4257 4257 out: 4258 LogFlowFunc(("returns % Vrc\n", rc));4258 LogFlowFunc(("returns %Rrc\n", rc)); 4259 4259 return rc; 4260 4260 } … … 4270 4270 4271 4271 rc = vmdkFlushImage(pImage); 4272 LogFlowFunc(("returns % Vrc\n", rc));4272 LogFlowFunc(("returns %Rrc\n", rc)); 4273 4273 return rc; 4274 4274 } … … 4303 4303 rc = VERR_VDI_NOT_OPENED; 4304 4304 4305 LogFlowFunc(("returns % Vrc enmImageType=%u\n", rc, *penmImageType));4305 LogFlowFunc(("returns %Rrc enmImageType=%u\n", rc, *penmImageType)); 4306 4306 return rc; 4307 4307 } … … 4374 4374 rc = VERR_VDI_NOT_OPENED; 4375 4375 4376 LogFlowFunc(("returns % Vrc (PCHS=%u/%u/%u)\n", rc, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));4376 LogFlowFunc(("returns %Rrc (PCHS=%u/%u/%u)\n", rc, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors)); 4377 4377 return rc; 4378 4378 } … … 4406 4406 4407 4407 out: 4408 LogFlowFunc(("returns % Vrc\n", rc));4408 LogFlowFunc(("returns %Rrc\n", rc)); 4409 4409 return rc; 4410 4410 } … … 4433 4433 rc = VERR_VDI_NOT_OPENED; 4434 4434 4435 LogFlowFunc(("returns % Vrc (LCHS=%u/%u/%u)\n", rc, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));4435 LogFlowFunc(("returns %Rrc (LCHS=%u/%u/%u)\n", rc, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors)); 4436 4436 return rc; 4437 4437 } … … 4465 4465 4466 4466 out: 4467 LogFlowFunc(("returns % Vrc\n", rc));4467 LogFlowFunc(("returns %Rrc\n", rc)); 4468 4468 return rc; 4469 4469 } … … 4525 4525 4526 4526 out: 4527 LogFlowFunc(("returns % Vrc\n", rc));4527 LogFlowFunc(("returns %Rrc\n", rc)); 4528 4528 return rc; 4529 4529 } … … 4560 4560 4561 4561 out: 4562 LogFlowFunc(("returns % Vrc comment='%s'\n", rc, pszComment));4562 LogFlowFunc(("returns %Rrc comment='%s'\n", rc, pszComment)); 4563 4563 return rc; 4564 4564 } … … 4585 4585 4586 4586 out: 4587 LogFlowFunc(("returns % Vrc\n", rc));4587 LogFlowFunc(("returns %Rrc\n", rc)); 4588 4588 return rc; 4589 4589 } … … 4606 4606 rc = VERR_VDI_NOT_OPENED; 4607 4607 4608 LogFlowFunc(("returns % Vrc (%Vuuid)\n", rc, pUuid));4608 LogFlowFunc(("returns %Rrc (%Vuuid)\n", rc, pUuid)); 4609 4609 return rc; 4610 4610 } … … 4637 4637 rc = VERR_VDI_NOT_OPENED; 4638 4638 4639 LogFlowFunc(("returns % Vrc\n", rc));4639 LogFlowFunc(("returns %Rrc\n", rc)); 4640 4640 return rc; 4641 4641 } … … 4658 4658 rc = VERR_VDI_NOT_OPENED; 4659 4659 4660 LogFlowFunc(("returns % Vrc (%Vuuid)\n", rc, pUuid));4660 LogFlowFunc(("returns %Rrc (%Vuuid)\n", rc, pUuid)); 4661 4661 return rc; 4662 4662 } … … 4688 4688 rc = VERR_VDI_NOT_OPENED; 4689 4689 4690 LogFlowFunc(("returns % Vrc\n", rc));4690 LogFlowFunc(("returns %Rrc\n", rc)); 4691 4691 return rc; 4692 4692 } … … 4709 4709 rc = VERR_VDI_NOT_OPENED; 4710 4710 4711 LogFlowFunc(("returns % Vrc (%Vuuid)\n", rc, pUuid));4711 LogFlowFunc(("returns %Rrc (%Vuuid)\n", rc, pUuid)); 4712 4712 return rc; 4713 4713 } … … 4739 4739 rc = VERR_VDI_NOT_OPENED; 4740 4740 4741 LogFlowFunc(("returns % Vrc\n", rc));4741 LogFlowFunc(("returns %Rrc\n", rc)); 4742 4742 return rc; 4743 4743 } … … 4760 4760 rc = VERR_VDI_NOT_OPENED; 4761 4761 4762 LogFlowFunc(("returns % Vrc (%Vuuid)\n", rc, pUuid));4762 LogFlowFunc(("returns %Rrc (%Vuuid)\n", rc, pUuid)); 4763 4763 return rc; 4764 4764 } … … 4790 4790 rc = VERR_VDI_NOT_OPENED; 4791 4791 4792 LogFlowFunc(("returns % Vrc\n", rc));4792 LogFlowFunc(("returns %Rrc\n", rc)); 4793 4793 return rc; 4794 4794 } … … 4817 4817 { 4818 4818 int rc = VERR_NOT_IMPLEMENTED; 4819 LogFlow(("%s: returned % Vrc\n", __FUNCTION__, rc));4819 LogFlow(("%s: returned %Rrc\n", __FUNCTION__, rc)); 4820 4820 return rc; 4821 4821 } … … 4824 4824 { 4825 4825 int rc = VERR_NOT_IMPLEMENTED; 4826 LogFlow(("%s: returned % Vrc\n", __FUNCTION__, rc));4826 LogFlow(("%s: returned %Rrc\n", __FUNCTION__, rc)); 4827 4827 return rc; 4828 4828 } … … 4831 4831 { 4832 4832 int rc = VERR_NOT_IMPLEMENTED; 4833 LogFlow(("%s: returned % Vrc\n", __FUNCTION__, rc));4833 LogFlow(("%s: returned %Rrc\n", __FUNCTION__, rc)); 4834 4834 return rc; 4835 4835 } … … 4838 4838 { 4839 4839 int rc = VERR_NOT_IMPLEMENTED; 4840 LogFlow(("%s: returned % Vrc\n", __FUNCTION__, rc));4840 LogFlow(("%s: returned %Rrc\n", __FUNCTION__, rc)); 4841 4841 return rc; 4842 4842 } … … 4845 4845 { 4846 4846 int rc = VERR_NOT_IMPLEMENTED; 4847 LogFlow(("%s: returned % Vrc\n", __FUNCTION__, rc));4847 LogFlow(("%s: returned %Rrc\n", __FUNCTION__, rc)); 4848 4848 return rc; 4849 4849 } … … 4928 4928 if (RT_FAILURE(rc)) 4929 4929 { 4930 AssertMsgFailed(("Preparing read failed rc=% Vrc\n", rc));4930 AssertMsgFailed(("Preparing read failed rc=%Rrc\n", rc)); 4931 4931 goto out; 4932 4932 } … … 5000 5000 NULL, pvUser, 5001 5001 NULL /* Nothing required after read. */); 5002 AssertMsg(RT_SUCCESS(rc), ("Failed to enqueue tasks rc=% Vrc\n", rc));5002 AssertMsg(RT_SUCCESS(rc), ("Failed to enqueue tasks rc=%Rrc\n", rc)); 5003 5003 } 5004 5004 5005 5005 out: 5006 LogFlowFunc(("returns % Vrc\n", rc));5006 LogFlowFunc(("returns %Rrc\n", rc)); 5007 5007 return rc; 5008 5008 } … … 5064 5064 if (RT_FAILURE(rc)) 5065 5065 { 5066 AssertMsgFailed(("Preparing read failed rc=% Vrc\n", rc));5066 AssertMsgFailed(("Preparing read failed rc=%Rrc\n", rc)); 5067 5067 goto out; 5068 5068 } … … 5136 5136 NULL, pvUser, 5137 5137 NULL /* Nothing required after read. */); 5138 AssertMsg(RT_SUCCESS(rc), ("Failed to enqueue tasks rc=% Vrc\n", rc));5138 AssertMsg(RT_SUCCESS(rc), ("Failed to enqueue tasks rc=%Rrc\n", rc)); 5139 5139 } 5140 5140 5141 5141 out: 5142 LogFlowFunc(("returns % Vrc\n", rc));5142 LogFlowFunc(("returns %Rrc\n", rc)); 5143 5143 return rc; 5144 5144 -
trunk/src/VBox/Devices/Storage/fdc.c
r11267 r11284 1231 1231 if (RT_FAILURE (rc)) { 1232 1232 AssertMsgFailed ( 1233 ("Floppy: error getting sector %d, rc = % Vrc",1233 ("Floppy: error getting sector %d, rc = %Rrc", 1234 1234 fd_sector (cur_drv), rc)); 1235 1235 memset(fdctrl->fifo, 0, FD_SECTOR_LEN); … … 1248 1248 len, &read); 1249 1249 dump (fdctrl->fifo + rel_pos, len); 1250 AssertMsgRC (rc, ("DMAWriteMemory -> % Vrc\n", rc));1250 AssertMsgRC (rc, ("DMAWriteMemory -> %Rrc\n", rc)); 1251 1251 } 1252 1252 #else … … 1266 1266 fdctrl->data_pos, 1267 1267 len, &written); 1268 AssertMsgRC (rc, ("DMAReadMemory -> % Vrc\n", rc));1268 AssertMsgRC (rc, ("DMAReadMemory -> %Rrc\n", rc)); 1269 1269 } 1270 1270 #else … … 1295 1295 1296 1296 if (RT_FAILURE (rc)) { 1297 AssertMsgFailed (("Floppy: error writing sector %d. rc=% Vrc",1297 AssertMsgFailed (("Floppy: error writing sector %d. rc=%Rrc", 1298 1298 fd_sector (cur_drv), rc)); 1299 1299 fdctrl_stop_transfer (fdctrl, 0x60, 0x00, 0x00); … … 1313 1313 rc = PDMDevHlpDMAReadMemory (fdctrl->pDevIns, nchan, tmpbuf, 1314 1314 fdctrl->data_pos, len, &read); 1315 AssertMsg (RT_SUCCESS (rc), ("DMAReadMemory -> % Vrc\n", rc));1315 AssertMsg (RT_SUCCESS (rc), ("DMAReadMemory -> %Rrc\n", rc)); 1316 1316 #else 1317 1317 DMA_read_memory (nchan, tmpbuf, fdctrl->data_pos, len); … … 1453 1453 if (RT_FAILURE (rc)) { 1454 1454 AssertMsgFailed ( 1455 ("Floppy: error getting sector %d. rc=% Vrc\n",1455 ("Floppy: error getting sector %d. rc=%Rrc\n", 1456 1456 fd_sector(cur_drv), rc)); 1457 1457 /* Sure, image size is too small... */ … … 1495 1495 if (RT_FAILURE (rc)) { 1496 1496 AssertMsgFailed ( 1497 ("Floppy: error writting sector %d. rc=% Vrc\n",1497 ("Floppy: error writting sector %d. rc=%Rrc\n", 1498 1498 fd_sector(cur_drv), rc)); 1499 1499 fdctrl_stop_transfer(fdctrl, 0x60, 0x00, 0x00); … … 1630 1630 if (RT_FAILURE (rc)) { 1631 1631 AssertMsgFailed ( 1632 ("Floppy: Failure to read sector %d. rc=% Vrc",1632 ("Floppy: Failure to read sector %d. rc=%Rrc", 1633 1633 fd_sector (cur_drv), rc)); 1634 1634 } … … 1720 1720 1721 1721 if (RT_FAILURE (rc)) { 1722 AssertMsgFailed (("Floppy: error formating sector %d. rc=% Vrc\n",1722 AssertMsgFailed (("Floppy: error formating sector %d. rc=%Rrc\n", 1723 1723 fd_sector (cur_drv), rc)); 1724 1724 fdctrl_stop_transfer(fdctrl, 0x60, 0x00, 0x00); … … 1789 1789 if (RT_FAILURE (rc)) { 1790 1790 AssertMsgFailed ( 1791 ("Floppy: failed to write sector %d. rc=% Vrc\n",1791 ("Floppy: failed to write sector %d. rc=%Rrc\n", 1792 1792 fd_sector (cur_drv), rc)); 1793 1793 } … … 2621 2621 } else { 2622 2622 AssertMsg (rc == VERR_PDM_NO_ATTACHED_DRIVER, 2623 ("Failed to attach LUN#%d. rc=% Vrc\n", drv->iLUN, rc));2623 ("Failed to attach LUN#%d. rc=%Rrc\n", drv->iLUN, rc)); 2624 2624 switch (rc) { 2625 2625 case VERR_ACCESS_DENIED: … … 2642 2642 drv->pDrvMount = NULL; 2643 2643 } 2644 LogFlow (("fdConfig: returns % Vrc\n", rc));2644 LogFlow (("fdConfig: returns %Rrc\n", rc)); 2645 2645 return rc; 2646 2646 } … … 2686 2686 rc = fdConfig (drv, pDevIns); 2687 2687 AssertMsg (rc != VERR_PDM_NO_ATTACHED_DRIVER, 2688 ("Configuration error: failed to configure drive %d, rc=% Vrc\n", rc));2688 ("Configuration error: failed to configure drive %d, rc=%Rrc\n", rc)); 2689 2689 if (RT_SUCCESS(rc)) { 2690 2690 fd_revalidate (drv); 2691 2691 } 2692 2692 2693 LogFlow (("floppyAttach: returns % Vrc\n", rc));2693 LogFlow (("floppyAttach: returns %Rrc\n", rc)); 2694 2694 return rc; 2695 2695 } … … 2792 2792 irq_lvl = 6; 2793 2793 else if (RT_FAILURE (rc)) { 2794 AssertMsgFailed (("Configuration error: Failed to read U8 IRQ, rc=% Vrc\n", rc));2794 AssertMsgFailed (("Configuration error: Failed to read U8 IRQ, rc=%Rrc\n", rc)); 2795 2795 return rc; 2796 2796 } … … 2800 2800 dma_chann = 2; 2801 2801 else if (RT_FAILURE (rc)) { 2802 AssertMsgFailed (("Configuration error: Failed to read U8 DMA, rc=% Vrc\n", rc));2802 AssertMsgFailed (("Configuration error: Failed to read U8 DMA, rc=%Rrc\n", rc)); 2803 2803 return rc; 2804 2804 } … … 2808 2808 io_base = 0x3f0; 2809 2809 else if (RT_FAILURE (rc)) { 2810 AssertMsgFailed (("Configuration error: Failed to read U16 IOBase, rc=% Vrc\n", rc));2810 AssertMsgFailed (("Configuration error: Failed to read U16 IOBase, rc=%Rrc\n", rc)); 2811 2811 return rc; 2812 2812 } … … 2816 2816 mem_mapped = false; 2817 2817 else if (RT_FAILURE (rc)) { 2818 AssertMsgFailed (("Configuration error: Failed to read bool value MemMapped rc=% Vrc\n", rc));2818 AssertMsgFailed (("Configuration error: Failed to read bool value MemMapped rc=%Rrc\n", rc)); 2819 2819 return rc; 2820 2820 } … … 2903 2903 pBase->pfnQueryInterface (pBase, PDMINTERFACE_LED_CONNECTORS); 2904 2904 } else if (rc != VERR_PDM_NO_ATTACHED_DRIVER) { 2905 AssertMsgFailed (("Failed to attach to status driver. rc=% Vrc\n",2905 AssertMsgFailed (("Failed to attach to status driver. rc=%Rrc\n", 2906 2906 rc)); 2907 2907 return rc; … … 2916 2916 if ( RT_FAILURE (rc) 2917 2917 && rc != VERR_PDM_NO_ATTACHED_DRIVER) { 2918 AssertMsgFailed (("Configuration error: failed to configure drive %d, rc=% Vrc\n", rc));2918 AssertMsgFailed (("Configuration error: failed to configure drive %d, rc=%Rrc\n", rc)); 2919 2919 return rc; 2920 2920 }
Note:
See TracChangeset
for help on using the changeset viewer.