Changeset 6300 in vbox
- Timestamp:
- Jan 9, 2008 4:41:22 PM (17 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPCI.cpp
r5999 r6300 1448 1448 else if (VBOX_FAILURE(rc)) 1449 1449 return PDMDEV_SET_ERROR(pDevIns, rc, 1450 N_("Configuration error: Failed to query boolean value \"IOAPIC\" ."));1450 N_("Configuration error: Failed to query boolean value \"IOAPIC\"")); 1451 1451 1452 1452 /* check if GC code is enabled. */ … … 1456 1456 else if (VBOX_FAILURE(rc)) 1457 1457 return PDMDEV_SET_ERROR(pDevIns, rc, 1458 N_("Configuration error: Failed to query boolean value \"GCEnabled\" ."));1458 N_("Configuration error: Failed to query boolean value \"GCEnabled\"")); 1459 1459 Log(("PCI: fGCEnabled=%d\n", fGCEnabled)); 1460 1460 … … 1465 1465 else if (VBOX_FAILURE(rc)) 1466 1466 return PDMDEV_SET_ERROR(pDevIns, rc, 1467 N_("Configuration error: Failed to query boolean value \"R0Enabled\" ."));1467 N_("Configuration error: Failed to query boolean value \"R0Enabled\"")); 1468 1468 Log(("PCI: fR0Enabled=%d\n", fR0Enabled)); 1469 1469 -
trunk/src/VBox/Devices/Network/DrvIntNet.cpp
r6001 r6300 787 787 if (OpenReq.cbSend < 16) 788 788 return PDMDRV_SET_ERROR(pDrvIns, rc, 789 N_("Configuration error: The \"SendBufferSize\" value is too small ."));789 N_("Configuration error: The \"SendBufferSize\" value is too small")); 790 790 if (OpenReq.cbSend < 1536*2 + 4) 791 791 LogRel(("DrvIntNet: Warning! SendBufferSize=%u, Recommended minimum size %u butes.\n", OpenReq.cbSend, 1536*2 + 4)); -
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r5999 r6300 430 430 if (!pData->pPort) 431 431 return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_MISSING_INTERFACE_ABOVE, 432 N_("Configuration error: the above device/driver didn't export the network port interface !\n"));432 N_("Configuration error: the above device/driver didn't export the network port interface")); 433 433 434 434 /* Generate a network address for this network card. */ -
trunk/src/VBox/Devices/Network/DrvTAP.cpp
r5999 r6300 629 629 if (rc != DLPI_SUCCESS) 630 630 return PDMDrvHlpVMSetError(pData->pDrvIns, VERR_HOSTIF_INIT_FAILED, RT_SRC_POS, 631 N_("Failed to open VNIC \"%s\" in raw mode ."), pData->pszDeviceName);631 N_("Failed to open VNIC \"%s\" in raw mode"), pData->pszDeviceName); 632 632 633 633 dlpi_info_t vnicInfo; … … 658 658 659 659 rc = PDMDrvHlpVMSetError(pData->pDrvIns, VERR_HOSTIF_INIT_FAILED, RT_SRC_POS, 660 N_("Failed to obtain file descriptor for VNIC ."));660 N_("Failed to obtain file descriptor for VNIC")); 661 661 } 662 662 else 663 663 rc = PDMDrvHlpVMSetError(pData->pDrvIns, VERR_HOSTIF_INIT_FAILED, RT_SRC_POS, 664 N_("Failed to set appropriate promiscous mode ."));664 N_("Failed to set appropriate promiscous mode")); 665 665 } 666 666 else 667 667 rc = PDMDrvHlpVMSetError(pData->pDrvIns, VERR_HOSTIF_INIT_FAILED, RT_SRC_POS, 668 N_("Failed to activate promiscous mode for VNIC ."));668 N_("Failed to activate promiscous mode for VNIC")); 669 669 } 670 670 else 671 671 rc = PDMDrvHlpVMSetError(pData->pDrvIns, VERR_HOSTIF_INIT_FAILED, RT_SRC_POS, 672 N_("Failed to set physical address for VNIC ."));672 N_("Failed to set physical address for VNIC")); 673 673 } 674 674 else 675 675 rc = PDMDrvHlpVMSetError(pData->pDrvIns, VERR_HOSTIF_INIT_FAILED, RT_SRC_POS, 676 N_("Failed to bind VNIC ."));676 N_("Failed to bind VNIC")); 677 677 } 678 678 else 679 679 rc = PDMDrvHlpVMSetError(pData->pDrvIns, VERR_HOSTIF_INIT_FAILED, RT_SRC_POS, 680 N_("VNIC type is not ethernet ."));680 N_("VNIC type is not ethernet")); 681 681 } 682 682 else 683 683 rc = PDMDrvHlpVMSetError(pData->pDrvIns, VERR_HOSTIF_INIT_FAILED, RT_SRC_POS, 684 N_("Failed to obtain VNIC info ."));684 N_("Failed to obtain VNIC info")); 685 685 dlpi_close(pData->pDeviceHandle); 686 686 return rc; … … 1049 1049 if (rc != VERR_PDM_NO_ATTACHED_DRIVER) 1050 1050 return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_DRVINS_NO_ATTACH, 1051 N_("Configuration error: Cannot attach drivers to the TAP driver !"));1051 N_("Configuration error: Cannot attach drivers to the TAP driver")); 1052 1052 1053 1053 /* … … 1057 1057 if (!pData->pPort) 1058 1058 return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_MISSING_INTERFACE_ABOVE, 1059 N_("Configuration error: The above device/driver didn't export the network port interface !"));1059 N_("Configuration error: The above device/driver didn't export the network port interface")); 1060 1060 1061 1061 /* … … 1119 1119 if (VBOX_FAILURE(rc)) 1120 1120 return PDMDRV_SET_ERROR(pDrvIns, rc, 1121 N_("Configuration error: Query for \"FileHandle\" 32-bit signed integer failed !"));1121 N_("Configuration error: Query for \"FileHandle\" 32-bit signed integer failed")); 1122 1122 pData->FileDevice = (RTFILE)iFile; 1123 1123 if (!RTFileIsValid(pData->FileDevice)) 1124 1124 return PDMDrvHlpVMSetError(pDrvIns, VERR_INVALID_HANDLE, RT_SRC_POS, 1125 N_("The TAP file handle %RTfile is not valid !"), pData->FileDevice);1125 N_("The TAP file handle %RTfile is not valid"), pData->FileDevice); 1126 1126 #endif /* !RT_OS_SOLARIS */ 1127 1127 -
trunk/src/VBox/Devices/Network/DrvTAPOs2.cpp
r5999 r6300 487 487 if (rc != VERR_PDM_NO_ATTACHED_DRIVER) 488 488 return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_DRVINS_NO_ATTACH, 489 N_("Configuration error: Cannot attach drivers to the TAP driver !"));489 N_("Configuration error: Cannot attach drivers to the TAP driver")); 490 490 491 491 /* … … 495 495 if (!pThis->pPort) 496 496 return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_MISSING_INTERFACE_ABOVE, 497 N_("Configuration error: The above device/driver didn't export the network port interface !"));497 N_("Configuration error: The above device/driver didn't export the network port interface")); 498 498 499 499 /* … … 505 505 else if (VBOX_FAILURE(rc)) 506 506 return PDMDRV_SET_ERROR(pDrvIns, rc, 507 N_("Configuration error: Query for \"Device\" failed !"));507 N_("Configuration error: Query for \"Device\" failed")); 508 508 509 509 int32_t iConnectTo; … … 513 513 else if (VBOX_FAILURE(rc)) 514 514 return PDMDRV_SET_ERROR(pDrvIns, rc, 515 N_("Configuration error: Query for \"ConnectTo\" failed !"));515 N_("Configuration error: Query for \"ConnectTo\" failed")); 516 516 517 517 /* … … 522 522 if (VBOX_FAILURE(rc)) 523 523 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, 524 N_("Failed to open tap device '%s' !"), pThis->szDevice);524 N_("Failed to open tap device '%s'"), pThis->szDevice); 525 525 526 526 ULONG Parm[2] = { ~0UL, ~0UL }; /* mysterious output */ … … 537 537 if (VBOX_FAILURE(rc)) 538 538 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, 539 N_("Failed to query LanNumber! orc=%d Parm={%ld,%ld} \n"),539 N_("Failed to query LanNumber! orc=%d Parm={%ld,%ld}"), 540 540 orc, Parm[0], Parm[1]); 541 541 pThis->iLan = (int32_t)Data; … … 564 564 if (VBOX_FAILURE(rc)) 565 565 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, 566 N_("Failed to connect %d to %d! orc=%d Parm={%ld,%ld} \n"),566 N_("Failed to connect %d to %d! orc=%d Parm={%ld,%ld}"), 567 567 pThis->iLan, iConnectTo, orc, Parm[0], Parm[1]); 568 568 Log(("%s: Connected to %d\n", pThis->szName, iConnectTo)); -
trunk/src/VBox/Devices/Network/DrvTAPWin32.cpp
r5999 r6300 480 480 if (rc != VERR_PDM_NO_ATTACHED_DRIVER) 481 481 return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_DRVINS_NO_ATTACH, 482 N_("Configuration error: Cannot attach drivers to the TUN driver !"));482 N_("Configuration error: Cannot attach drivers to the TUN driver")); 483 483 484 484 /* … … 488 488 if (!pData->pPort) 489 489 return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_MISSING_INTERFACE_ABOVE, 490 N_("Configuration error: the above device/driver didn't export the network port interface !"));490 N_("Configuration error: the above device/driver didn't export the network port interface")); 491 491 492 492 /* … … 497 497 if (VBOX_FAILURE(rc)) 498 498 return PDMDRV_SET_ERROR(pDrvIns, rc, 499 N_("Configuration error: query for \"HostInterfaceName\" failed ."));499 N_("Configuration error: query for \"HostInterfaceName\" failed")); 500 500 501 501 TAP_MEDIASTATUS mediastatus; … … 507 507 if (VBOX_FAILURE(rc)) 508 508 return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES, 509 N_("Configuration error: could not query GUID !"));509 N_("Configuration error: could not query GUID")); 510 510 511 511 RTStrPrintfEx(NULL, NULL, szFullDriverName, sizeof(szFullDriverName), "\\\\.\\Global\\%s.tap", szDriverGUID); … … 532 532 CloseHandle(pData->hFile); 533 533 return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_HIF_INVALID_VERSION, 534 N_("Failed to get the Host Interface Networking device driver version ."));;534 N_("Failed to get the Host Interface Networking device driver version"));; 535 535 } 536 536 LogRel(("TAP version %d.%d\n", pData->tapVersion.major, pData->tapVersion.minor)); … … 542 542 CloseHandle(pData->hFile); 543 543 return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_HIF_INVALID_VERSION, 544 N_("Invalid Host Interface Networking device driver version ."));;544 N_("Invalid Host Interface Networking device driver version"));; 545 545 } 546 546 -
trunk/src/VBox/Devices/PC/DevACPI.cpp
r6156 r6300 20 20 #include <VBox/pdmdev.h> 21 21 #include <VBox/log.h> 22 #include <VBox/rem.h> 22 23 #include <iprt/assert.h> 23 24 #include <iprt/asm.h> … … 876 877 else 877 878 Log (("acpi: acpiSmiWriteU8 %#x <- unknown value\n", val)); 879 if (s->dev.config[0x5b] & (1 << 1)) 880 PDMDevHlpSMIInterrupt(s->pDevIns); 881 LogRel(("acpiSmiWriteU8 %08x <= %08x\n", addr, val)); 878 882 } 879 883 … … 1489 1493 if (last_addr > 0x10000) 1490 1494 return PDMDEV_SET_ERROR(s->pDevIns, VERR_TOO_MUCH_DATA, 1491 N_("Error: ACPI tables > 64KB !"));1495 N_("Error: ACPI tables > 64KB")); 1492 1496 1493 1497 Log(("RSDP 0x%08X\n", find_rsdp_space())); … … 1549 1553 else if (VBOX_FAILURE (rc)) 1550 1554 return PDMDEV_SET_ERROR(pDevIns, rc, 1551 N_("Configuration error: Failed to read \"IOAPIC\" ."));1555 N_("Configuration error: Failed to read \"IOAPIC\"")); 1552 1556 1553 1557 rc = CFGMR3QueryBool (pCfgHandle, "GCEnabled", &fGCEnabled); … … 1556 1560 else if (VBOX_FAILURE (rc)) 1557 1561 return PDMDEV_SET_ERROR(pDevIns, rc, 1558 N_("Configuration error: Failed to read \"GCEnabled\" ."));1562 N_("Configuration error: Failed to read \"GCEnabled\"")); 1559 1563 1560 1564 rc = CFGMR3QueryBool(pCfgHandle, "R0Enabled", &fR0Enabled); … … 1563 1567 else if (VBOX_FAILURE(rc)) 1564 1568 return PDMDEV_SET_ERROR(pDevIns, rc, 1565 N_("configuration error: failed to read R0Enabled as boolean ."));1569 N_("configuration error: failed to read R0Enabled as boolean")); 1566 1570 1567 1571 /* */ … … 1569 1573 if (!rsdp_addr) 1570 1574 return PDMDEV_SET_ERROR(pDevIns, VERR_NO_MEMORY, 1571 N_("Can not find space for RSDP. ACPI is disabled ."));1575 N_("Can not find space for RSDP. ACPI is disabled")); 1572 1576 1573 1577 rc = acpiPlantTables (s); … … 1691 1695 if (!s->pDrv) 1692 1696 return PDMDEV_SET_ERROR(pDevIns, VERR_PDM_MISSING_INTERFACE, 1693 N_("LUN #0 doesn't have an ACPI connector interface !\n"));1697 N_("LUN #0 doesn't have an ACPI connector interface")); 1694 1698 } 1695 1699 else if (rc == VERR_PDM_NO_ATTACHED_DRIVER) … … 1701 1705 else 1702 1706 return PDMDEV_SET_ERROR(pDevIns, rc, 1703 N_("Failed to attach LUN #0 !"));1707 N_("Failed to attach LUN #0")); 1704 1708 1705 1709 return rc; -
trunk/src/VBox/Devices/PC/DevAPIC.cpp
r5999 r6300 1651 1651 else if (VBOX_FAILURE (rc)) 1652 1652 return PDMDEV_SET_ERROR(pDevIns, rc, 1653 N_("Configuration error: Failed to read \"IOAPIC\" ."));1653 N_("Configuration error: Failed to read \"IOAPIC\"")); 1654 1654 1655 1655 rc = CFGMR3QueryBool(pCfgHandle, "GCEnabled", &fGCEnabled); … … 1993 1993 else if (VBOX_FAILURE(rc)) 1994 1994 return PDMDEV_SET_ERROR(pDevIns, rc, 1995 N_("Configuration error: Failed to query boolean value \"GCEnabled\" !"));1995 N_("Configuration error: Failed to query boolean value \"GCEnabled\"")); 1996 1996 Log(("IOAPIC: fGCEnabled=%d\n", fGCEnabled)); 1997 1997 … … 2001 2001 else if (VBOX_FAILURE(rc)) 2002 2002 return PDMDEV_SET_ERROR(pDevIns, rc, 2003 N_("Configuration error: Failed to query boolean value \"R0Enabled\" !"));2003 N_("Configuration error: Failed to query boolean value \"R0Enabled\"")); 2004 2004 Log(("IOAPIC: fR0Enabled=%d\n", fR0Enabled)); 2005 2005 -
trunk/src/VBox/Devices/PC/DevPcBios.cpp
r6299 r6300 1140 1140 else if (!strcmp(psz, "NONE")) 1141 1141 *penmBoot = DEVPCBIOSBOOT_NONE; 1142 else1142 // else 1143 1143 { 1144 1144 PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS, 1145 N_("Configuration error: The \"%s\" value \"%s\" is unknown .\n"),1145 N_("Configuration error: The \"%s\" value \"%s\" is unknown"), 1146 1146 pszParam, psz); 1147 1147 rc = VERR_INTERNAL_ERROR; … … 1210 1210 else if (VBOX_FAILURE (rc)) 1211 1211 return PDMDEV_SET_ERROR(pDevIns, rc, 1212 N_("Configuration error: Failed to read \"IOAPIC\" ."));1212 N_("Configuration error: Failed to read \"IOAPIC\"")); 1213 1213 1214 1214 static const char * const s_apszBootDevices[] = { "BootDevice0", "BootDevice1", "BootDevice2", "BootDevice3" }; -
trunk/src/VBox/Devices/Parallel/DevParallel.cpp
r6227 r6300 814 814 AssertMsgFailed(("Parallel%d: Failed to attach to host driver. rc=%Vrc\n", iInstance, rc)); 815 815 return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS, 816 N_("Parallel device %d cannot attach to host driver \n"), iInstance);816 N_("Parallel device %d cannot attach to host driver"), iInstance); 817 817 } 818 818 -
trunk/src/VBox/VMM/TM.cpp
r6298 r6300 311 311 || pVM->tm.s.cTSCTicksPerSecond >= _4G) 312 312 return VMSetError(pVM, VERR_INVALID_PARAMETER, RT_SRC_POS, 313 N_("Configuration error: \"TSCTicksPerSecond\" = %RI64 is not in the range 1MHz..4GHz-1 !"),313 N_("Configuration error: \"TSCTicksPerSecond\" = %RI64 is not in the range 1MHz..4GHz-1"), 314 314 pVM->tm.s.cTSCTicksPerSecond); 315 315 else … … 410 410 || pVM->tm.s.u32VirtualWarpDrivePercentage > 20000) 411 411 return VMSetError(pVM, VERR_INVALID_PARAMETER, RT_SRC_POS, 412 N_("Configuration error: \"WarpDrivePercent\" = %RI32 is not in the range 2..20000 !"),412 N_("Configuration error: \"WarpDrivePercent\" = %RI32 is not in the range 2..20000"), 413 413 pVM->tm.s.u32VirtualWarpDrivePercentage); 414 414 pVM->tm.s.fVirtualWarpDrive = pVM->tm.s.u32VirtualWarpDrivePercentage != 100; -
trunk/src/VBox/VMM/VM.cpp
r6298 r6300 258 258 * using the initial callback, as the callback list doesn't exist yet. 259 259 */ 260 const char *pszError ;260 const char *pszError = NULL; 261 261 switch (rc) 262 262 { … … 274 274 AssertMsgFailed(("Add error message for rc=%d (%Vrc)\n", rc, rc)); 275 275 } 276 vmR3CallVMAtError(pfnVMAtError, pvUserVM, rc, RT_SRC_POS, pszError, rc); 276 if (pszError) 277 vmR3CallVMAtError(pfnVMAtError, pvUserVM, rc, RT_SRC_POS, pszError, rc); 277 278 278 279 /* Forcefully terminate the emulation thread. */ … … 328 329 "'/etc/init.d/vboxdrv setup' as root"); 329 330 #else 330 pszError = N_("VirtualBox kernel driver not loaded .");331 pszError = N_("VirtualBox kernel driver not loaded"); 331 332 #endif 332 333 break; -
trunk/src/VBox/VMM/VMEmt.cpp
r5999 r6300 944 944 enmHaltMethod = (VMHALTMETHOD)u32; 945 945 if (enmHaltMethod <= VMHALTMETHOD_INVALID || enmHaltMethod >= VMHALTMETHOD_END) 946 return VMSetError(pVM, VERR_INVALID_PARAMETER, RT_SRC_POS, N_("Invalid VM/HaltMethod value %d ."), enmHaltMethod);946 return VMSetError(pVM, VERR_INVALID_PARAMETER, RT_SRC_POS, N_("Invalid VM/HaltMethod value %d"), enmHaltMethod); 947 947 } 948 948 else if (rc == VERR_CFGM_VALUE_NOT_FOUND || rc == VERR_CFGM_CHILD_NOT_FOUND) 949 return VMSetError(pVM, rc, RT_SRC_POS, N_("Failed to Query VM/HaltMethod as uint32_t ."));949 return VMSetError(pVM, rc, RT_SRC_POS, N_("Failed to Query VM/HaltMethod as uint32_t")); 950 950 else 951 951 enmHaltMethod = VMHALTMETHOD_GLOBAL_1; -
trunk/src/VBox/VMM/VMM.cpp
r5999 r6300 324 324 else 325 325 VMSetError(pVM, rc, RT_SRC_POS, 326 N_("Failed to allocate %d bytes of contiguous memory for the world switcher code ."),326 N_("Failed to allocate %d bytes of contiguous memory for the world switcher code"), 327 327 cbCoreCode); 328 328
Note:
See TracChangeset
for help on using the changeset viewer.