Changeset 13837 in vbox for trunk/src/VBox/Frontends/VBoxBFE
- Timestamp:
- Nov 5, 2008 2:54:02 AM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxBFE
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxBFE/DisplayImpl.cpp
r13835 r13837 809 809 } 810 810 811 LogFlow(("Display::VideoAccelEnable: rc = % Vrc.\n", rc));811 LogFlow(("Display::VideoAccelEnable: rc = %Rrc.\n", rc)); 812 812 813 813 return rc; … … 1260 1260 if (RT_FAILURE(rc)) 1261 1261 { 1262 AssertMsgFailed(("Configuration error: No/bad \"Object\" value! rc=% Vrc\n", rc));1262 AssertMsgFailed(("Configuration error: No/bad \"Object\" value! rc=%Rrc\n", rc)); 1263 1263 return rc; 1264 1264 } -
trunk/src/VBox/Frontends/VBoxBFE/HGCM.cpp
r13835 r13837 341 341 rc = m_pfnLoad (&m_fntable); 342 342 343 LogFlowFunc(("m_pfnLoad rc = % Vrc\n", rc));343 LogFlowFunc(("m_pfnLoad rc = %Rrc\n", rc)); 344 344 345 345 if (RT_SUCCESS (rc)) … … 365 365 else 366 366 { 367 LogRel(("HGCM: Failed to load the service library: [%s], rc = % Vrc. The service will be not available.\n", m_pszSvcLibrary, rc));367 LogRel(("HGCM: Failed to load the service library: [%s], rc = %Rrc. The service will be not available.\n", m_pszSvcLibrary, rc)); 368 368 m_hLdrMod = NIL_RTLDRMOD; 369 369 } … … 535 535 { 536 536 /* The error means some serious unrecoverable problem in the hgcmMsg/hgcmThread layer. */ 537 AssertMsgFailed (("% Vrc\n", rc));537 AssertMsgFailed (("%Rrc\n", rc)); 538 538 break; 539 539 } … … 847 847 } 848 848 849 LogFlowFunc(("rc = % Vrc\n", rc));849 LogFlowFunc(("rc = %Rrc\n", rc)); 850 850 return rc; 851 851 } … … 895 895 } 896 896 897 LogFlowFunc(("rc = % Vrc\n", rc));897 LogFlowFunc(("rc = %Rrc\n", rc)); 898 898 return rc; 899 899 } … … 920 920 } 921 921 922 LogFlowFunc(("rc = % Vrc\n", rc));922 LogFlowFunc(("rc = %Rrc\n", rc)); 923 923 return rc; 924 924 } … … 989 989 } 990 990 991 LogFlowFunc(("rc = % Vrc\n", rc));991 LogFlowFunc(("rc = %Rrc\n", rc)); 992 992 return rc; 993 993 } … … 1382 1382 } 1383 1383 1384 LogFlowFunc(("rc = % Vrc\n", rc));1384 LogFlowFunc(("rc = %Rrc\n", rc)); 1385 1385 return rc; 1386 1386 } … … 1444 1444 } 1445 1445 1446 LogFlowFunc(("rc = % Vrc\n", rc));1446 LogFlowFunc(("rc = %Rrc\n", rc)); 1447 1447 return rc; 1448 1448 } … … 1472 1472 } 1473 1473 1474 LogFlowFunc(("rc = % Vrc\n", rc));1474 LogFlowFunc(("rc = %Rrc\n", rc)); 1475 1475 return rc; 1476 1476 } … … 1494 1494 } 1495 1495 1496 LogFlowFunc(("rc = % Vrc\n", rc));1496 LogFlowFunc(("rc = %Rrc\n", rc)); 1497 1497 } 1498 1498 … … 1535 1535 else 1536 1536 { 1537 Log(("MAIN::HGCMService::Call: Message allocation failed: % Vrc\n", rc));1538 } 1539 1540 LogFlowFunc(("rc = % Vrc\n", rc));1537 Log(("MAIN::HGCMService::Call: Message allocation failed: %Rrc\n", rc)); 1538 } 1539 1540 LogFlowFunc(("rc = %Rrc\n", rc)); 1541 1541 return rc; 1542 1542 } … … 1571 1571 } 1572 1572 1573 LogFlowFunc(("rc = % Vrc\n", rc));1573 LogFlowFunc(("rc = %Rrc\n", rc)); 1574 1574 return rc; 1575 1575 } … … 1705 1705 { 1706 1706 /* The error means some serious unrecoverable problem in the hgcmMsg/hgcmThread layer. */ 1707 AssertMsgFailed (("% Vrc\n", rc));1707 AssertMsgFailed (("%Rrc\n", rc)); 1708 1708 break; 1709 1709 } … … 1892 1892 hgcmMsgComplete (pMsgCore, rc); 1893 1893 1894 LogFlowFunc(("message processed % Vrc\n", rc));1894 LogFlowFunc(("message processed %Rrc\n", rc)); 1895 1895 } 1896 1896 } … … 1947 1947 } 1948 1948 1949 LogFlowFunc(("rc = % Vrc\n", rc));1949 LogFlowFunc(("rc = %Rrc\n", rc)); 1950 1950 return rc; 1951 1951 } … … 1991 1991 } 1992 1992 1993 LogFlowFunc(("*pHandle = %p, rc = % Vrc\n", *pHandle, rc));1993 LogFlowFunc(("*pHandle = %p, rc = %Rrc\n", *pHandle, rc)); 1994 1994 return rc; 1995 1995 } … … 2017 2017 } 2018 2018 2019 LogFlowFunc(("rc = % Vrc\n", rc));2019 LogFlowFunc(("rc = %Rrc\n", rc)); 2020 2020 return; 2021 2021 } … … 2066 2066 } 2067 2067 2068 LogFlowFunc(("rc = % Vrc\n", rc));2068 LogFlowFunc(("rc = %Rrc\n", rc)); 2069 2069 return rc; 2070 2070 } … … 2109 2109 } 2110 2110 2111 LogFlowFunc(("rc = % Vrc\n", rc));2111 LogFlowFunc(("rc = %Rrc\n", rc)); 2112 2112 return rc; 2113 2113 } … … 2140 2140 } 2141 2141 2142 LogFlowFunc(("rc = % Vrc\n", rc));2142 LogFlowFunc(("rc = %Rrc\n", rc)); 2143 2143 return rc; 2144 2144 } … … 2204 2204 } 2205 2205 2206 LogFlowFunc(("rc = % Vrc\n", rc));2206 LogFlowFunc(("rc = %Rrc\n", rc)); 2207 2207 return rc; 2208 2208 } … … 2254 2254 } 2255 2255 2256 LogFlowFunc(("rc = % Vrc\n", rc));2256 LogFlowFunc(("rc = %Rrc\n", rc)); 2257 2257 return rc; 2258 2258 } … … 2274 2274 } 2275 2275 2276 LogFlowFunc(("rc = % Vrc\n", rc));2276 LogFlowFunc(("rc = %Rrc\n", rc)); 2277 2277 return rc; 2278 2278 } … … 2294 2294 if (RT_FAILURE (rc)) 2295 2295 { 2296 LogRel(("Failed to start HGCM thread. HGCM services will be unavailable!!! rc = % Vrc\n", rc));2297 } 2298 } 2299 2300 LogFlowFunc(("rc = % Vrc\n", rc));2296 LogRel(("Failed to start HGCM thread. HGCM services will be unavailable!!! rc = %Rrc\n", rc)); 2297 } 2298 } 2299 2300 LogFlowFunc(("rc = %Rrc\n", rc)); 2301 2301 return rc; 2302 2302 } … … 2334 2334 } 2335 2335 2336 LogFlowFunc(("rc = % Vrc\n", rc));2336 LogFlowFunc(("rc = %Rrc\n", rc)); 2337 2337 return rc; 2338 2338 } -
trunk/src/VBox/Frontends/VBoxBFE/HGCMObjects.cpp
r13835 r13837 67 67 rc = RTCritSectInit (&g_critsect); 68 68 69 LogFlow(("MAIN::hgcmObjInit: rc = % Vrc\n", rc));69 LogFlow(("MAIN::hgcmObjInit: rc = %Rrc\n", rc)); 70 70 71 71 return rc; … … 171 171 } 172 172 173 LogFlow(("MAIN::hgcmObjGenerateHandle: handle = 0x%08X, rc = % Vrc, return void\n", handle, rc));173 LogFlow(("MAIN::hgcmObjGenerateHandle: handle = 0x%08X, rc = %Rrc, return void\n", handle, rc)); 174 174 175 175 return handle; … … 211 211 else 212 212 { 213 AssertReleaseMsgFailed (("Failed to acquire object pool semaphore, rc = % Vrc", rc));214 } 215 } 216 217 LogFlow(("MAIN::hgcmObjDeleteHandle: rc = % Vrc, return void\n", rc));213 AssertReleaseMsgFailed (("Failed to acquire object pool semaphore, rc = %Rrc", rc)); 214 } 215 } 216 217 LogFlow(("MAIN::hgcmObjDeleteHandle: rc = %Rrc, return void\n", rc)); 218 218 219 219 return; … … 253 253 else 254 254 { 255 AssertReleaseMsgFailed (("Failed to acquire object pool semaphore, rc = % Vrc", rc));255 AssertReleaseMsgFailed (("Failed to acquire object pool semaphore, rc = %Rrc", rc)); 256 256 } 257 257 -
trunk/src/VBox/Frontends/VBoxBFE/HGCMThread.cpp
r13835 r13837 265 265 } 266 266 267 LogFlowFunc(("rc = % Vrc\n", rc));267 LogFlowFunc(("rc = %Rrc\n", rc)); 268 268 return rc; 269 269 } … … 337 337 if (RT_FAILURE (rc)) 338 338 { 339 Log(("HGCMThread::MsgPost: FAILURE: could not obtain worker thread mutex, rc = % Vrc!!!\n", rc));339 Log(("HGCMThread::MsgPost: FAILURE: could not obtain worker thread mutex, rc = %Rrc!!!\n", rc)); 340 340 } 341 341 #endif /* LOG_ENABLED */ … … 449 449 } 450 450 451 LogFlow(("HGCMThread::MsgPost: rc = % Vrc\n", rc));451 LogFlow(("HGCMThread::MsgPost: rc = %Rrc\n", rc)); 452 452 453 453 return rc; … … 531 531 } 532 532 533 LogFlow(("HGCMThread::MsgGet: *ppMsg = %p, return rc = % Vrc\n", *ppMsg, rc));533 LogFlow(("HGCMThread::MsgGet: *ppMsg = %p, return rc = %Rrc\n", *ppMsg, rc)); 534 534 535 535 return rc; … … 644 644 else 645 645 { 646 Log(("hgcmThreadCreate: FAILURE: rc = % Vrc.\n", rc));646 Log(("hgcmThreadCreate: FAILURE: rc = %Rrc.\n", rc)); 647 647 648 648 if (handle != 0) … … 653 653 } 654 654 655 LogFlow(("MAIN::hgcmThreadCreate: rc = % Vrc\n", rc));655 LogFlow(("MAIN::hgcmThreadCreate: rc = %Rrc\n", rc)); 656 656 657 657 return rc; … … 672 672 } 673 673 674 LogFlowFunc(("rc = % Vrc\n", rc));674 LogFlowFunc(("rc = %Rrc\n", rc)); 675 675 return rc; 676 676 } … … 700 700 } 701 701 702 LogFlow(("MAIN::hgcmMsgAlloc: handle 0x%08X, rc = % Vrc\n", *pHandle, rc));702 LogFlow(("MAIN::hgcmMsgAlloc: handle 0x%08X, rc = %Rrc\n", *pHandle, rc)); 703 703 704 704 return rc; … … 724 724 } 725 725 726 LogFlow(("MAIN::hgcmMsgPostInternal: hMsg 0x%08X, rc = % Vrc\n", hMsg, rc));726 LogFlow(("MAIN::hgcmMsgPostInternal: hMsg 0x%08X, rc = %Rrc\n", hMsg, rc)); 727 727 728 728 return rc; … … 782 782 } 783 783 784 LogFlow(("MAIN::hgcmMsgGet: *ppMsg = %p, rc = % Vrc\n", *ppMsg, rc));784 LogFlow(("MAIN::hgcmMsgGet: *ppMsg = %p, rc = %Rrc\n", *ppMsg, rc)); 785 785 786 786 return rc; … … 815 815 rc = hgcmObjInit (); 816 816 817 LogFlow(("MAIN::hgcmThreadInit: rc = % Vrc\n", rc));817 LogFlow(("MAIN::hgcmThreadInit: rc = %Rrc\n", rc)); 818 818 819 819 return rc; -
trunk/src/VBox/Frontends/VBoxBFE/HostUSBImpl.cpp
r13835 r13837 255 255 else 256 256 { 257 Log (("Console::AttachUSBDevice: Failed to create proxy device for '%s' %Vuuid, vrc=% Vrc\n", Address.c_str(),257 Log (("Console::AttachUSBDevice: Failed to create proxy device for '%s' %Vuuid, vrc=%Rrc\n", Address.c_str(), 258 258 &Uuid, vrc)); 259 259 AssertRC (vrc); … … 270 270 break; 271 271 default: 272 hrc = setError (E_FAIL, tr ("Failed to create USB proxy device: % Vrc"), vrc);272 hrc = setError (E_FAIL, tr ("Failed to create USB proxy device: %Rrc"), vrc); 273 273 break; 274 274 } … … 318 318 if (RT_SUCCESS (vrc)) 319 319 return S_OK; 320 Log (("Console::AttachUSBDevice: Failed to detach the device from the USB controller, vrc=% Vrc.\n", vrc));321 return(setError (E_UNEXPECTED, tr ("Failed to destroy the USB proxy device: % Vrc"), vrc));322 } 320 Log (("Console::AttachUSBDevice: Failed to detach the device from the USB controller, vrc=%Rrc.\n", vrc)); 321 return(setError (E_UNEXPECTED, tr ("Failed to destroy the USB proxy device: %Rrc"), vrc)); 322 } -
trunk/src/VBox/Frontends/VBoxBFE/KeyboardImpl.cpp
r13835 r13837 257 257 if (RT_FAILURE(rc)) 258 258 { 259 AssertMsgFailed(("Configuration error: No/bad \"Object\" value! rc=% Vrc\n", rc));259 AssertMsgFailed(("Configuration error: No/bad \"Object\" value! rc=%Rrc\n", rc)); 260 260 return rc; 261 261 } -
trunk/src/VBox/Frontends/VBoxBFE/MachineDebuggerImpl.cpp
r13835 r13837 149 149 return S_OK; 150 150 151 AssertMsgFailed(("Could not set raw mode flags to %d, rcVBox = % Vrc\n",151 AssertMsgFailed(("Could not set raw mode flags to %d, rcVBox = %Rrc\n", 152 152 rawModeFlag, rcVBox)); 153 153 return E_FAIL; … … 209 209 return S_OK; 210 210 211 AssertMsgFailed(("Could not set raw mode flags to %d, rcVBox = % Vrc\n",211 AssertMsgFailed(("Could not set raw mode flags to %d, rcVBox = %Rrc\n", 212 212 rawModeFlag, rcVBox)); 213 213 return E_FAIL; -
trunk/src/VBox/Frontends/VBoxBFE/MouseImpl.cpp
r13835 r13837 264 264 if (RT_FAILURE(rc)) 265 265 { 266 AssertMsgFailed(("Configuration error: No/bad \"Object\" value! rc=% Vrc\n", rc));266 AssertMsgFailed(("Configuration error: No/bad \"Object\" value! rc=%Rrc\n", rc)); 267 267 return rc; 268 268 } -
trunk/src/VBox/Frontends/VBoxBFE/StatusImpl.cpp
r13835 r13837 166 166 if (RT_FAILURE(rc)) 167 167 { 168 AssertMsgFailed(("Configuration error: Failed to query the \"papLeds\" value! rc=% Vrc\n", rc));168 AssertMsgFailed(("Configuration error: Failed to query the \"papLeds\" value! rc=%Rrc\n", rc)); 169 169 return rc; 170 170 } … … 175 175 else if (RT_FAILURE(rc)) 176 176 { 177 AssertMsgFailed(("Configuration error: Failed to query the \"First\" value! rc=% Vrc\n", rc));177 AssertMsgFailed(("Configuration error: Failed to query the \"First\" value! rc=%Rrc\n", rc)); 178 178 return rc; 179 179 } … … 184 184 else if (RT_FAILURE(rc)) 185 185 { 186 AssertMsgFailed(("Configuration error: Failed to query the \"Last\" value! rc=% Vrc\n", rc));186 AssertMsgFailed(("Configuration error: Failed to query the \"Last\" value! rc=%Rrc\n", rc)); 187 187 return rc; 188 188 } -
trunk/src/VBox/Frontends/VBoxBFE/USBProxyServiceLinux.cpp
r13835 r13837 162 162 AssertRC (rc); 163 163 #endif 164 Log (("USBProxyServiceLinux::USBProxyServiceLinux: RTFileOpen(,%s,,) -> % Vrc\n", pszDevices, rc));164 Log (("USBProxyServiceLinux::USBProxyServiceLinux: RTFileOpen(,%s,,) -> %Rrc\n", pszDevices, rc)); 165 165 } 166 166 RTStrFree (pszDevices); … … 170 170 171 171 mLastError = rc; 172 LogFlowMember (("USBProxyServiceLinux::USBProxyServiceLinux: returns failure!!! (rc=% Vrc)\n", rc));172 LogFlowMember (("USBProxyServiceLinux::USBProxyServiceLinux: returns failure!!! (rc=%Rrc)\n", rc)); 173 173 } 174 174 … … 1042 1042 if (RT_FAILURE (rc)) 1043 1043 { 1044 LogFlow (("USBProxyServiceLinux::getDevices: rc=% Vrc\n", rc));1044 LogFlow (("USBProxyServiceLinux::getDevices: rc=%Rrc\n", rc)); 1045 1045 while (pFirst) 1046 1046 { -
trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp
r13836 r13837 245 245 if (RT_FAILURE(rc)) 246 246 { 247 RTPrintf("Error: invalid network device option (rc=% Vrc): %s\n", rc, pszArg);247 RTPrintf("Error: invalid network device option (rc=%Rrc): %s\n", rc, pszArg); 248 248 return -1; 249 249 } … … 276 276 if (RT_FAILURE(rc)) 277 277 { 278 LogFlowFunc(("RTUuidCreate failed, returning % Vrc\n", rc));278 LogFlowFunc(("RTUuidCreate failed, returning %Rrc\n", rc)); 279 279 return rc; 280 280 } … … 492 492 rc = RTStrToUInt32Ex(argv[curArg], NULL, 0, &g_u32MemorySizeMB); 493 493 if (RT_FAILURE(rc)) 494 return SyntaxError("bad memory size: %s (error % Vrc)\n",494 return SyntaxError("bad memory size: %s (error %Rrc)\n", 495 495 argv[curArg], rc); 496 496 } … … 503 503 g_u32VRamSize = uVRAMMB * _1M; 504 504 if (RT_FAILURE(rc)) 505 return SyntaxError("bad video ram size: %s (error % Vrc)\n",505 return SyntaxError("bad video ram size: %s (error %Rrc)\n", 506 506 argv[curArg], rc); 507 507 } … … 652 652 rc = GenerateMACAddress(szMacGen); 653 653 if (RT_FAILURE(rc)) 654 return SyntaxError("failed to generate a hardware address for network device %d (error % Vrc)\n",654 return SyntaxError("failed to generate a hardware address for network device %d (error %Rrc)\n", 655 655 i, rc); 656 656 pszMac = szMacGen; … … 1015 1015 int rc = RTR3Init(); 1016 1016 if (RT_FAILURE(rc)) 1017 return FatalError("RTR3Init failed rc=% Vrc\n", rc);1017 return FatalError("RTR3Init failed rc=%Rrc\n", rc); 1018 1018 1019 1019 return TrustedMain(argc, argv, NULL); … … 1094 1094 va_copy(va2, args); /* Have to make a copy here or GCC will break. */ 1095 1095 RTStrPrintf(szError, sizeof(szError), 1096 "%N!\nVBox status code: %d (% Vrc)", pszFormat, &va2, rc, rc);1096 "%N!\nVBox status code: %d (%Rrc)", pszFormat, &va2, rc, rc); 1097 1097 RTPrintf("%s\n", szError); 1098 1098 va_end(va2); … … 1170 1170 if (RT_FAILURE(rc)) 1171 1171 { 1172 RTPrintf("Error: VM creation failed with % Vrc.\n", rc);1172 RTPrintf("Error: VM creation failed with %Rrc.\n", rc); 1173 1173 goto failure; 1174 1174 } … … 1181 1181 if (RT_FAILURE(rc)) 1182 1182 { 1183 RTPrintf("Error: VMR3AtStateRegister failed with % Vrc.\n", rc);1183 RTPrintf("Error: VMR3AtStateRegister failed with %Rrc.\n", rc); 1184 1184 goto failure; 1185 1185 } … … 1290 1290 } 1291 1291 else 1292 AssertMsgFailed(("VMR3Load failed, rc=% Vrc\n", rc));1292 AssertMsgFailed(("VMR3Load failed, rc=%Rrc\n", rc)); 1293 1293 } 1294 1294 else … … 1302 1302 } 1303 1303 else 1304 AssertMsgFailed(("VMR3PowerOn failed, rc=% Vrc\n", rc));1304 AssertMsgFailed(("VMR3PowerOn failed, rc=%Rrc\n", rc)); 1305 1305 } 1306 1306 } … … 1809 1809 if (RT_FAILURE(rc)) 1810 1810 { 1811 FatalError("Failed to open /dev/net/tun: % Vrc\n", rc);1811 FatalError("Failed to open /dev/net/tun: %Rrc\n", rc); 1812 1812 return rc; 1813 1813 } … … 1833 1833 { 1834 1834 int rc2 = RTErrConvertFromErrno(errno); 1835 FatalError("ioctl TUNSETIFF '%s' failed: errno=%d rc=%d (% Vrc)\n",1835 FatalError("ioctl TUNSETIFF '%s' failed: errno=%d rc=%d (%Rrc)\n", 1836 1836 IfReq.ifr_name, errno, rc, rc2); 1837 1837 return rc2; … … 1842 1842 { 1843 1843 int rc2 = RTErrConvertFromErrno(errno); 1844 FatalError("fcntl F_SETFL/O_NONBLOCK '%s' failed: errno=%d rc=%d (% Vrc)\n",1844 FatalError("fcntl F_SETFL/O_NONBLOCK '%s' failed: errno=%d rc=%d (%Rrc)\n", 1845 1845 IfReq.ifr_name, errno, rc, rc2); 1846 1846 return rc2; -
trunk/src/VBox/Frontends/VBoxBFE/VMMDevInterface.cpp
r13835 r13837 468 468 if (RT_FAILURE(rc)) 469 469 { 470 AssertMsgFailed(("Configuration error: No/bad \"Object\" value! rc=% Vrc\n", rc));470 AssertMsgFailed(("Configuration error: No/bad \"Object\" value! rc=%Rrc\n", rc)); 471 471 return rc; 472 472 } … … 483 483 LogRel(("Shared Folders service loaded.\n")); 484 484 else 485 LogRel(("Failed to load Shared Folders service % Vrc\n", rc));485 LogRel(("Failed to load Shared Folders service %Rrc\n", rc)); 486 486 487 487 pDrvIns->pDrvHlp->pfnSSMRegister(pDrvIns, "HGCM", 0, HGCM_SSM_VERSION, 4096/* bad guess */, NULL, iface_hgcmSave, NULL, NULL, iface_hgcmLoad, NULL); -
trunk/src/VBox/Frontends/VBoxBFE/VirtualBoxBase.h
r13835 r13837 113 113 #define ComAssertRC(vrc) AssertRC (vrc) 114 114 #else 115 #define ComAssertRC(vrc) ComAssertMsgRC (vrc, ("% Vra", vrc))115 #define ComAssertRC(vrc) ComAssertMsgRC (vrc, ("%Rra", vrc)) 116 116 #endif 117 117
Note:
See TracChangeset
for help on using the changeset viewer.