VirtualBox

Changeset 18645 in vbox for trunk/src/VBox/Frontends/VBoxBFE


Ignore:
Timestamp:
Apr 2, 2009 3:38:31 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
45568
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp

    r18265 r18645  
    11071107 * @param   pVM         The VM handle.
    11081108 * @param   pvUser      The user argument.
    1109  * @param   fFata       Wheather it is a fatal error or not.
     1109 * @param   fFlags      The action flags. See VMSETRTERR_FLAGS_*.
    11101110 * @param   pszErrorId  Error ID string.
    11111111 * @param   pszError    Error message format string.
    1112  * @param   args        Error message arguments.
     1112 * @param   va          Error message arguments.
    11131113 * @thread EMT.
    11141114 */
    1115 DECLCALLBACK(void) setVMRuntimeErrorCallback(PVM pVM, void *pvUser, bool fFatal,
     1115DECLCALLBACK(void) setVMRuntimeErrorCallback(PVM pVM, void *pvUser, uint32_t fFlags,
    11161116                                             const char *pszErrorId,
    1117                                              const char *pszFormat, va_list args)
     1117                                             const char *pszFormat, va_list va)
    11181118{
    11191119    va_list va2;
    1120     va_copy(va2, args); /* Have to make a copy here or GCC will break. */
    1121     RTPrintf("%s: %s!\n%N!\n", fFatal ? "Error" : "Warning", pszErrorId, pszFormat, &va2);
     1120    va_copy(va2, va); /* Have to make a copy here or GCC/AMD64 will break. */
     1121    RTPrintf("%s: %s!\n%N!\n",
     1122             fFlags & VMSETRTERR_FLAGS_FATAL ? "Error" : "Warning",
     1123             pszErrorId, pszFormat, &va2);
     1124    RTStrmFlush(g_pStdErr);
    11221125    va_end(va2);
    11231126}
Note: See TracChangeset for help on using the changeset viewer.

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