Changeset 2916 in vbox for trunk/src/VBox
- Timestamp:
- May 29, 2007 1:15:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp
r2905 r2916 892 892 893 893 894 /** 895 * VM Runtime error callback function. Called by the various VM components. 896 * 897 * @param pVM The VM handle. 898 * @param pvUser The user argument. 899 * @param fFata Wheather it is a fatal error or not. 900 * @param pszErrorId Error ID string. 901 * @param pszError Error message format string. 902 * @param args Error message arguments. 903 * @thread EMT. 904 */ 905 DECLCALLBACK(void) setVMRuntimeErrorCallback(PVM pVM, void *pvUser, bool fFatal, 906 const char *pszErrorId, 907 const char *pszFormat, va_list args) 908 { 909 RTPrintf("%s: %s!\n%N!\n", fFatal ? "Error" : "Warning", pszErrorId, pszFormat, &args); 910 } 911 912 894 913 /** VM asynchronous operations thread */ 895 914 DECLCALLBACK(int) VMPowerUpThread(RTTHREAD Thread, void *pvUser) … … 1064 1083 PCFGMNODE pRoot = CFGMR3GetRoot(pVM); 1065 1084 rc = CFGMR3InsertString(pRoot, "Name", "Default VM"); UPDATE_RC(); 1066 rc = CFGMR3InsertInteger(pRoot, "RamSize", g_u32MemorySizeMB * _1M);UPDATE_RC();1085 rc = CFGMR3InsertInteger(pRoot, "RamSize", g_u32MemorySizeMB * _1M); UPDATE_RC(); 1067 1086 if (g_fPreAllocRam) 1068 1087 { … … 1114 1133 rc = CFGMR3InsertInteger(pInst, "Trusted", 1); /* boolean */ UPDATE_RC(); 1115 1134 rc = CFGMR3InsertNode(pInst, "Config", &pCfg); UPDATE_RC(); 1116 rc = CFGMR3InsertInteger(pCfg, "RamSize", g_u32MemorySizeMB * _1M);UPDATE_RC();1135 rc = CFGMR3InsertInteger(pCfg, "RamSize", g_u32MemorySizeMB * _1M); UPDATE_RC(); 1117 1136 rc = CFGMR3InsertString(pCfg, "BootDevice0", pszBootDevice); UPDATE_RC(); 1118 1137 rc = CFGMR3InsertString(pCfg, "BootDevice1", "NONE"); UPDATE_RC(); … … 1131 1150 /* Boot menu */ 1132 1151 rc = CFGMR3InsertInteger(pCfg, "ShowBootMenu", g_iBootMenu); UPDATE_RC(); 1133 1134 1152 1135 1153 /* … … 1583 1601 #undef UPDATE_RC 1584 1602 1603 VMR3AtRuntimeErrorRegister (pVM, setVMRuntimeErrorCallback, NULL); 1604 1585 1605 return rc; 1586 1606 }
Note:
See TracChangeset
for help on using the changeset viewer.