Changeset 90997 in vbox for trunk/src/VBox/VMM/VMMR3/PDMDriver.cpp
- Timestamp:
- Aug 30, 2021 2:04:48 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PDMDriver.cpp
r90784 r90997 1197 1197 1198 1198 1199 /** @interface_method_impl{PDMDRVHLPR3,pfnVMSetError} */1200 static DECLCALLBACK(int) pdmR3DrvHlp_VMSetError(PPDMDRVINS pDrvIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...)1201 {1202 PDMDRV_ASSERT_DRVINS(pDrvIns);1203 va_list args;1204 va_start(args, pszFormat);1205 int rc2 = VMSetErrorV(pDrvIns->Internal.s.pVMR3, rc, RT_SRC_POS_ARGS, pszFormat, args); Assert(rc2 == rc); NOREF(rc2);1206 va_end(args);1207 return rc;1208 }1209 1210 1211 1199 /** @interface_method_impl{PDMDRVHLPR3,pfnVMSetErrorV} */ 1212 1200 static DECLCALLBACK(int) pdmR3DrvHlp_VMSetErrorV(PPDMDRVINS pDrvIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va) … … 1214 1202 PDMDRV_ASSERT_DRVINS(pDrvIns); 1215 1203 int rc2 = VMSetErrorV(pDrvIns->Internal.s.pVMR3, rc, RT_SRC_POS_ARGS, pszFormat, va); Assert(rc2 == rc); NOREF(rc2); 1216 return rc;1217 }1218 1219 1220 /** @interface_method_impl{PDMDRVHLPR3,pfnVMSetRuntimeError} */1221 static DECLCALLBACK(int) pdmR3DrvHlp_VMSetRuntimeError(PPDMDRVINS pDrvIns, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, ...)1222 {1223 PDMDRV_ASSERT_DRVINS(pDrvIns);1224 va_list args;1225 va_start(args, pszFormat);1226 int rc = VMSetRuntimeErrorV(pDrvIns->Internal.s.pVMR3, fFlags, pszErrorId, pszFormat, args);1227 va_end(args);1228 1204 return rc; 1229 1205 } … … 2037 2013 pdmR3DrvHlp_AssertEMT, 2038 2014 pdmR3DrvHlp_AssertOther, 2039 pdmR3DrvHlp_VMSetError,2040 2015 pdmR3DrvHlp_VMSetErrorV, 2041 pdmR3DrvHlp_VMSetRuntimeError,2042 2016 pdmR3DrvHlp_VMSetRuntimeErrorV, 2043 2017 pdmR3DrvHlp_VMState,
Note:
See TracChangeset
for help on using the changeset viewer.