Changeset 18645 in vbox for trunk/src/VBox/Frontends/VBoxBFE
- Timestamp:
- Apr 2, 2009 3:38:31 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 45568
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp
r18265 r18645 1107 1107 * @param pVM The VM handle. 1108 1108 * @param pvUser The user argument. 1109 * @param fF ata Wheather it is a fatal error or not.1109 * @param fFlags The action flags. See VMSETRTERR_FLAGS_*. 1110 1110 * @param pszErrorId Error ID string. 1111 1111 * @param pszError Error message format string. 1112 * @param argsError message arguments.1112 * @param va Error message arguments. 1113 1113 * @thread EMT. 1114 1114 */ 1115 DECLCALLBACK(void) setVMRuntimeErrorCallback(PVM pVM, void *pvUser, bool fFatal,1115 DECLCALLBACK(void) setVMRuntimeErrorCallback(PVM pVM, void *pvUser, uint32_t fFlags, 1116 1116 const char *pszErrorId, 1117 const char *pszFormat, va_list args)1117 const char *pszFormat, va_list va) 1118 1118 { 1119 1119 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); 1122 1125 va_end(va2); 1123 1126 }
Note:
See TracChangeset
for help on using the changeset viewer.