VirtualBox

Changeset 6300 in vbox


Ignore:
Timestamp:
Jan 9, 2008 4:41:22 PM (17 years ago)
Author:
vboxsync
Message:

no "\n", ".", nor "!" at end of an error message

Location:
trunk/src/VBox
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPCI.cpp

    r5999 r6300  
    14481448    else if (VBOX_FAILURE(rc))
    14491449        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\""));
    14511451
    14521452    /* check if GC code is enabled. */
     
    14561456    else if (VBOX_FAILURE(rc))
    14571457        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\""));
    14591459    Log(("PCI: fGCEnabled=%d\n", fGCEnabled));
    14601460
     
    14651465    else if (VBOX_FAILURE(rc))
    14661466        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\""));
    14681468    Log(("PCI: fR0Enabled=%d\n", fR0Enabled));
    14691469
  • trunk/src/VBox/Devices/Network/DrvIntNet.cpp

    r6001 r6300  
    787787    if (OpenReq.cbSend < 16)
    788788        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"));
    790790    if (OpenReq.cbSend < 1536*2 + 4)
    791791        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  
    430430    if (!pData->pPort)
    431431        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"));
    433433
    434434    /* Generate a network address for this network card. */
  • trunk/src/VBox/Devices/Network/DrvTAP.cpp

    r5999 r6300  
    629629    if (rc != DLPI_SUCCESS)
    630630        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);
    632632
    633633    dlpi_info_t vnicInfo;
     
    658658
    659659                            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"));
    661661                        }
    662662                        else
    663663                            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"));
    665665                    }
    666666                    else
    667667                        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"));
    669669                }
    670670                else
    671671                    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"));
    673673            }
    674674            else
    675675                rc = PDMDrvHlpVMSetError(pData->pDrvIns, VERR_HOSTIF_INIT_FAILED, RT_SRC_POS,
    676                                          N_("Failed to bind VNIC."));
     676                                         N_("Failed to bind VNIC"));
    677677        }
    678678        else
    679679            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"));
    681681    }
    682682    else
    683683        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"));
    685685    dlpi_close(pData->pDeviceHandle);
    686686    return rc;
     
    10491049    if (rc != VERR_PDM_NO_ATTACHED_DRIVER)
    10501050        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"));
    10521052
    10531053    /*
     
    10571057    if (!pData->pPort)
    10581058        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"));
    10601060
    10611061    /*
     
    11191119    if (VBOX_FAILURE(rc))
    11201120        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"));
    11221122    pData->FileDevice = (RTFILE)iFile;
    11231123    if (!RTFileIsValid(pData->FileDevice))
    11241124        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);
    11261126#endif /* !RT_OS_SOLARIS */
    11271127
  • trunk/src/VBox/Devices/Network/DrvTAPOs2.cpp

    r5999 r6300  
    487487    if (rc != VERR_PDM_NO_ATTACHED_DRIVER)
    488488        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"));
    490490
    491491    /*
     
    495495    if (!pThis->pPort)
    496496        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"));
    498498
    499499    /*
     
    505505    else if (VBOX_FAILURE(rc))
    506506        return PDMDRV_SET_ERROR(pDrvIns, rc,
    507                                 N_("Configuration error: Query for \"Device\" failed!"));
     507                                N_("Configuration error: Query for \"Device\" failed"));
    508508
    509509    int32_t iConnectTo;
     
    513513    else if (VBOX_FAILURE(rc))
    514514        return PDMDRV_SET_ERROR(pDrvIns, rc,
    515                                 N_("Configuration error: Query for \"ConnectTo\" failed!"));
     515                                N_("Configuration error: Query for \"ConnectTo\" failed"));
    516516
    517517    /*
     
    522522    if (VBOX_FAILURE(rc))
    523523        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);
    525525
    526526    ULONG Parm[2] = { ~0UL, ~0UL }; /* mysterious output */
     
    537537    if (VBOX_FAILURE(rc))
    538538        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}"),
    540540                                   orc, Parm[0], Parm[1]);
    541541    pThis->iLan = (int32_t)Data;
     
    564564        if (VBOX_FAILURE(rc))
    565565            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}"),
    567567                                       pThis->iLan, iConnectTo, orc, Parm[0], Parm[1]);
    568568        Log(("%s: Connected to %d\n", pThis->szName, iConnectTo));
  • trunk/src/VBox/Devices/Network/DrvTAPWin32.cpp

    r5999 r6300  
    480480    if (rc != VERR_PDM_NO_ATTACHED_DRIVER)
    481481        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"));
    483483
    484484    /*
     
    488488    if (!pData->pPort)
    489489        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"));
    491491
    492492    /*
     
    497497    if (VBOX_FAILURE(rc))
    498498        return PDMDRV_SET_ERROR(pDrvIns, rc,
    499                                 N_("Configuration error: query for \"HostInterfaceName\" failed."));
     499                                N_("Configuration error: query for \"HostInterfaceName\" failed"));
    500500
    501501    TAP_MEDIASTATUS mediastatus;
     
    507507    if (VBOX_FAILURE(rc))
    508508        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"));
    510510
    511511    RTStrPrintfEx(NULL, NULL, szFullDriverName, sizeof(szFullDriverName), "\\\\.\\Global\\%s.tap", szDriverGUID);
     
    532532        CloseHandle(pData->hFile);
    533533        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"));;
    535535    }
    536536    LogRel(("TAP version %d.%d\n", pData->tapVersion.major, pData->tapVersion.minor));
     
    542542        CloseHandle(pData->hFile);
    543543        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"));;
    545545    }
    546546
  • trunk/src/VBox/Devices/PC/DevACPI.cpp

    r6156 r6300  
    2020#include <VBox/pdmdev.h>
    2121#include <VBox/log.h>
     22#include <VBox/rem.h>
    2223#include <iprt/assert.h>
    2324#include <iprt/asm.h>
     
    876877    else
    877878        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));
    878882}
    879883
     
    14891493    if (last_addr > 0x10000)
    14901494        return PDMDEV_SET_ERROR(s->pDevIns, VERR_TOO_MUCH_DATA,
    1491                                 N_("Error: ACPI tables > 64KB!"));
     1495                                N_("Error: ACPI tables > 64KB"));
    14921496
    14931497    Log(("RSDP 0x%08X\n", find_rsdp_space()));
     
    15491553    else if (VBOX_FAILURE (rc))
    15501554        return PDMDEV_SET_ERROR(pDevIns, rc,
    1551                                 N_("Configuration error: Failed to read \"IOAPIC\"."));
     1555                                N_("Configuration error: Failed to read \"IOAPIC\""));
    15521556
    15531557    rc = CFGMR3QueryBool (pCfgHandle, "GCEnabled", &fGCEnabled);
     
    15561560    else if (VBOX_FAILURE (rc))
    15571561        return PDMDEV_SET_ERROR(pDevIns, rc,
    1558                                 N_("Configuration error: Failed to read \"GCEnabled\"."));
     1562                                N_("Configuration error: Failed to read \"GCEnabled\""));
    15591563
    15601564    rc = CFGMR3QueryBool(pCfgHandle, "R0Enabled", &fR0Enabled);
     
    15631567    else if (VBOX_FAILURE(rc))
    15641568        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"));
    15661570
    15671571    /* */
     
    15691573    if (!rsdp_addr)
    15701574        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"));
    15721576
    15731577    rc = acpiPlantTables (s);
     
    16911695       if (!s->pDrv)
    16921696           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"));
    16941698   }
    16951699   else if (rc == VERR_PDM_NO_ATTACHED_DRIVER)
     
    17011705   else
    17021706       return PDMDEV_SET_ERROR(pDevIns, rc,
    1703                                N_("Failed to attach LUN #0!"));
     1707                               N_("Failed to attach LUN #0"));
    17041708
    17051709    return rc;
  • trunk/src/VBox/Devices/PC/DevAPIC.cpp

    r5999 r6300  
    16511651    else if (VBOX_FAILURE (rc))
    16521652        return PDMDEV_SET_ERROR(pDevIns, rc,
    1653                                 N_("Configuration error: Failed to read \"IOAPIC\"."));
     1653                                N_("Configuration error: Failed to read \"IOAPIC\""));
    16541654
    16551655    rc = CFGMR3QueryBool(pCfgHandle, "GCEnabled", &fGCEnabled);
     
    19931993    else if (VBOX_FAILURE(rc))
    19941994        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\""));
    19961996    Log(("IOAPIC: fGCEnabled=%d\n", fGCEnabled));
    19971997
     
    20012001    else if (VBOX_FAILURE(rc))
    20022002        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\""));
    20042004    Log(("IOAPIC: fR0Enabled=%d\n", fR0Enabled));
    20052005
  • trunk/src/VBox/Devices/PC/DevPcBios.cpp

    r6299 r6300  
    11401140    else if (!strcmp(psz, "NONE"))
    11411141        *penmBoot = DEVPCBIOSBOOT_NONE;
    1142     else
     1142//    else
    11431143    {
    11441144        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"),
    11461146                            pszParam, psz);
    11471147        rc = VERR_INTERNAL_ERROR;
     
    12101210    else if (VBOX_FAILURE (rc))
    12111211        return PDMDEV_SET_ERROR(pDevIns, rc,
    1212                                 N_("Configuration error: Failed to read \"IOAPIC\"."));
     1212                                N_("Configuration error: Failed to read \"IOAPIC\""));
    12131213
    12141214    static const char * const s_apszBootDevices[] = { "BootDevice0", "BootDevice1", "BootDevice2", "BootDevice3" };
  • trunk/src/VBox/Devices/Parallel/DevParallel.cpp

    r6227 r6300  
    814814        AssertMsgFailed(("Parallel%d: Failed to attach to host driver. rc=%Vrc\n", iInstance, rc));
    815815        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);
    817817    }
    818818
  • trunk/src/VBox/VMM/TM.cpp

    r6298 r6300  
    311311             || pVM->tm.s.cTSCTicksPerSecond >= _4G)
    312312        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"),
    314314                          pVM->tm.s.cTSCTicksPerSecond);
    315315    else
     
    410410             || pVM->tm.s.u32VirtualWarpDrivePercentage > 20000)
    411411        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"),
    413413                          pVM->tm.s.u32VirtualWarpDrivePercentage);
    414414    pVM->tm.s.fVirtualWarpDrive = pVM->tm.s.u32VirtualWarpDrivePercentage != 100;
  • trunk/src/VBox/VMM/VM.cpp

    r6298 r6300  
    258258                         * using the initial callback, as the callback list doesn't exist yet.
    259259                         */
    260                         const char *pszError;
     260                        const char *pszError = NULL;
    261261                        switch (rc)
    262262                        {
     
    274274                                AssertMsgFailed(("Add error message for rc=%d (%Vrc)\n", rc, rc));
    275275                        }
    276                         vmR3CallVMAtError(pfnVMAtError, pvUserVM, rc, RT_SRC_POS, pszError, rc);
     276                        if (pszError)
     277                            vmR3CallVMAtError(pfnVMAtError, pvUserVM, rc, RT_SRC_POS, pszError, rc);
    277278
    278279                        /* Forcefully terminate the emulation thread. */
     
    328329                              "'/etc/init.d/vboxdrv setup' as root");
    329330#else
    330                 pszError = N_("VirtualBox kernel driver not loaded.");
     331                pszError = N_("VirtualBox kernel driver not loaded");
    331332#endif
    332333                break;
  • trunk/src/VBox/VMM/VMEmt.cpp

    r5999 r6300  
    944944            enmHaltMethod = (VMHALTMETHOD)u32;
    945945            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);
    947947        }
    948948        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"));
    950950        else
    951951            enmHaltMethod = VMHALTMETHOD_GLOBAL_1;
  • trunk/src/VBox/VMM/VMM.cpp

    r5999 r6300  
    324324    else
    325325        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"),
    327327                   cbCoreCode);
    328328
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette