VirtualBox

Changeset 18645 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Apr 2, 2009 3:38:31 PM (16 years ago)
Author:
vboxsync
Message:

VMSetRuntimeError[V] refactoring: fFatal -> fFlags, may return informational status codes.

Location:
trunk/src/VBox/Devices
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevIchAc97.cpp

    r12978 r18645  
    16801680        ac97Reset (pDevIns);
    16811681
    1682         PDMDevHlpVMSetRuntimeError (pDevIns, false, "HostAudioNotResponding",
     1682        PDMDevHlpVMSetRuntimeError (pDevIns, 0 /*fFlags*/, "HostAudioNotResponding",
    16831683            N_ ("No audio devices could be opened. Selecting the NULL audio backend "
    16841684                "with the consequence that no sound is audible"));
     
    16961696            len += RTStrPrintf (szMissingVoices + len, sizeof(szMissingVoices) - len, len ? ", PCM_mic" : "PCM_mic");
    16971697
    1698         PDMDevHlpVMSetRuntimeError (pDevIns, false, "HostAudioNotResponding",
     1698        PDMDevHlpVMSetRuntimeError (pDevIns, 0 /*fFlags*/, "HostAudioNotResponding",
    16991699            N_ ("Some audio devices (%s) could not be opened. Guest applications generating audio "
    17001700                "output or depending on audio input may hang. Make sure your host audio device "
  • trunk/src/VBox/Devices/Audio/DevSB16.cpp

    r18497 r18645  
    18361836        s->voice = NULL;
    18371837        AUD_init_null();
    1838         PDMDevHlpVMSetRuntimeError(pDevIns, false, "HostAudioNotResponding",
     1838        PDMDevHlpVMSetRuntimeError(pDevIns, 0 /*fFlags*/, "HostAudioNotResponding",
    18391839            N_("No audio devices could be opened. Selecting the NULL audio backend "
    18401840               "with the consequence that no sound is audible"));
  • trunk/src/VBox/Devices/Network/DevE1000.cpp

    r18622 r18645  
    48534853        if (rc == VINF_NAT_DNS)
    48544854        {
    4855             VMSetRuntimeError(PDMDevHlpGetVM(pDevIns), false, "NoDNSforNAT",
    4856                               N_("A Domain Name Server (DNS) for NAT networking could not be determined. Ensure that your host is correctly connected to an ISP. If you ignore this warning the guest will not be able to perform nameserver lookups and it will probably observe delays if trying so"));
     4855            PDMDevHlpVMSetRuntimeError(pDevIns, 0 /*fFlags*/, "NoDNSforNAT",
     4856                                       N_("A Domain Name Server (DNS) for NAT networking could not be determined. Ensure that your host is correctly connected to an ISP. If you ignore this warning the guest will not be able to perform nameserver lookups and it will probably observe delays if trying so"));
    48574857        }
    48584858        pState->pDrv = (PPDMINETWORKCONNECTOR)
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r18573 r18645  
    49914991        {
    49924992#ifdef RT_OS_LINUX
    4993             VMSetRuntimeError(PDMDevHlpGetVM(pDevIns), false, "NoDNSforNAT",
    4994                               N_("A Domain Name Server (DNS) for NAT networking could not be determined. Please check your /etc/resolv.conf for <tt>nameserver</tt> entries. Either add one manually (<i>man resolv.conf</i>) or ensure that your host is correctly connected to an ISP. If you ignore this warning the guest will not be able to perform nameserver lookups and it will probably observe delays if trying so"));
     4993            PDMDevHlpVMSetRuntimeError(pDevIns, 0 /*fFlags*/, "NoDNSforNAT",
     4994                                       N_("A Domain Name Server (DNS) for NAT networking could not be determined. Please check your /etc/resolv.conf for <tt>nameserver</tt> entries. Either add one manually (<i>man resolv.conf</i>) or ensure that your host is correctly connected to an ISP. If you ignore this warning the guest will not be able to perform nameserver lookups and it will probably observe delays if trying so"));
    49954995#else
    4996             VMSetRuntimeError(PDMDevHlpGetVM(pDevIns), false, "NoDNSforNAT",
    4997                               N_("A Domain Name Server (DNS) for NAT networking could not be determined. Ensure that your host is correctly connected to an ISP. If you ignore this warning the guest will not be able to perform nameserver lookups and it will probably observe delays if trying so"));
     4996            PDMDevHlpVMSetRuntimeError(pDevIns, 0 /*fFlags*/, "NoDNSforNAT",
     4997                                       N_("A Domain Name Server (DNS) for NAT networking could not be determined. Ensure that your host is correctly connected to an ISP. If you ignore this warning the guest will not be able to perform nameserver lookups and it will probably observe delays if trying so"));
    49984998#endif
    49994999        }
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r17655 r18645  
    387387
    388388        int cChangedFDs = poll(polls, nFDs + 1, ms ? ms : -1);
     389#ifndef RT_OS_LINUX /* 2.6.23 + gdb -> hitting all the time. probably a bug in poll/ptrace/whatever. */
    389390        AssertRelease(cChangedFDs >= 0);
     391#endif
    390392        if (cChangedFDs >= 0)
    391393        {
     
    397399                size_t cbRead;
    398400                int counter = 0;
    399                 /* 
    400                  * drvNATSend decoupled so we don't know how many times 
     401                /*
     402                 * drvNATSend decoupled so we don't know how many times
    401403                 * device's thread sends before we've entered multiplex,
    402404                 * so to avoid false alarm drain pipe here to the very end
    403405                 *
    404                  * @todo: Probably we should counter drvNATSend to count how 
    405                  * deep pipe has been filed before drain. 
     406                 * @todo: Probably we should counter drvNATSend to count how
     407                 * deep pipe has been filed before drain.
    406408                 *
    407409                 * XXX:Make it reading exactly we need to drain the pipe.
     
    564566        cDroppedPackets++;
    565567    }
    566     else 
     568    else
    567569    {
    568570        LogRel(("NAT: %d messages suppressed about dropping package (couldn't allocate queue item)\n", cDroppedPackets));
  • trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp

    r16527 r18645  
    974974        {
    975975ioctl_error:
    976             PDMDrvHlpVMSetRuntimeError(pDrvIns, false, "DrvHostSerialFail",
     976            PDMDrvHlpVMSetRuntimeError(pDrvIns, 0 /*fFlags*/, "DrvHostSerialFail",
    977977                                       N_("Ioctl failed for serial host device '%s' (%Rrc). The device will not work properly"),
    978978                                       pThis->pszDevicePath, RTErrConvertFromErrno(errno));
     
    990990        if (rc < 0)
    991991        {
    992             PDMDrvHlpVMSetRuntimeError(pDrvIns, false, "DrvHostSerialFail",
     992            PDMDrvHlpVMSetRuntimeError(pDrvIns, 0 /*fFlags*/, "DrvHostSerialFail",
    993993                                       N_("Ioctl failed for serial host device '%s' (%Rrc). The device will not work properly"),
    994994                                       pThis->pszDevicePath, RTErrConvertFromErrno(errno));
     
    10921092
    10931093ioctl_error:
    1094     PDMDrvHlpVMSetRuntimeError(pDrvIns, false, "DrvHostSerialFail",
     1094    PDMDrvHlpVMSetRuntimeError(pDrvIns, 0 /*fFlags*/, "DrvHostSerialFail",
    10951095                                N_("Ioctl failed for serial host device '%s' (%Rrc). The device will not work properly"),
    10961096                                pThis->pszDevicePath, RTErrConvertFromErrno(errno));
     
    11121112    rc = RTThreadPoke(pThread->Thread);
    11131113    if (RT_FAILURE(rc))
    1114         PDMDrvHlpVMSetRuntimeError(pDrvIns, false, "DrvHostSerialFail",
     1114        PDMDrvHlpVMSetRuntimeError(pDrvIns, 0 /*fFlags*/, "DrvHostSerialFail",
    11151115                                    N_("Suspending serial monitor thread failed for serial device '%s' (%Rrc). The shutdown may take longer than expected"),
    11161116                                    pThis->pszDevicePath, RTErrConvertFromErrno(rc));
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r18434 r18645  
    13701370    int rc;
    13711371    LogRel(("PIIX3 ATA: Host disk full\n"));
    1372     rc = VMSetRuntimeError(PDMDevHlpGetVM(pDevIns),
    1373                            false, "DevATA_DISKFULL",
    1374                            N_("Host system reported disk full. VM execution is suspended. You can resume after freeing some space"));
     1372    rc = PDMDevHlpVMSetRuntimeError(pDevIns, 0 /*fFlags*/, "DevATA_DISKFULL",
     1373                                    N_("Host system reported disk full. VM execution is suspended. You can resume after freeing some space"));
    13751374    AssertRC(rc);
    13761375}
     
    13801379    int rc;
    13811380    LogRel(("PIIX3 ATA: File too big\n"));
    1382     rc = VMSetRuntimeError(PDMDevHlpGetVM(pDevIns),
    1383                            false, "DevATA_FILETOOBIG",
    1384                            N_("Host system reported that the file size limit of the host file system has been exceeded. VM execution is suspended. You need to move your virtual hard disk to a filesystem which allows bigger files"));
     1381    rc = PDMDevHlpVMSetRuntimeError(pDevIns, 0 /*fFlags*/, "DevATA_FILETOOBIG",
     1382                                    N_("Host system reported that the file size limit of the host file system has been exceeded. VM execution is suspended. You need to move your virtual hard disk to a filesystem which allows bigger files"));
    13851383    AssertRC(rc);
    13861384}
     
    13901388    int rc;
    13911389    LogRel(("PIIX3 ATA: iSCSI target unavailable\n"));
    1392     rc = VMSetRuntimeError(PDMDevHlpGetVM(pDevIns),
    1393                            false, "DevATA_ISCSIDOWN",
    1394                            N_("The iSCSI target has stopped responding. VM execution is suspended. You can resume when it is available again"));
     1390    rc = PDMDevHlpVMSetRuntimeError(pDevIns, 0 /*fFlags*/, "DevATA_ISCSIDOWN",
     1391                                    N_("The iSCSI target has stopped responding. VM execution is suspended. You can resume when it is available again"));
    13951392    AssertRC(rc);
    13961393}
     
    52395236        if (!ataWaitForAsyncIOIsIdle(&pThis->aCts[i], 30000))
    52405237        {
    5241             VMSetRuntimeError(PDMDevHlpGetVM(pDevIns),
    5242                               false, "DevATA_ASYNCBUSY",
    5243                               N_("The IDE async I/O thread remained busy after a reset, usually a host filesystem performance problem\n"));
     5238            PDMDevHlpVMSetRuntimeError(pDevIns, 0 /*fFlags*/, "DevATA_ASYNCBUSY",
     5239                                       N_("The IDE async I/O thread remained busy after a reset, usually a host filesystem performance problem\n"));
    52445240            AssertMsgFailed(("Async I/O thread busy after reset\n"));
    52455241        }
  • trunk/src/VBox/Devices/Storage/DrvHostBase.cpp

    r18440 r18645  
    19731973                if (pThis->fAttachFailError)
    19741974                    return rc;
    1975                 int erc = PDMDrvHlpVMSetRuntimeError(pDrvIns,
    1976                                                      false, "DrvHost_MOUNTFAIL",
     1975                int erc = PDMDrvHlpVMSetRuntimeError(pDrvIns, 0 /*fFlags*/,
     1976                                                     "DrvHost_MOUNTFAIL",
    19771977                                                     N_("Cannot attach to host device '%s'"), pszDevice);
    19781978                AssertRC(erc);
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