- Timestamp:
- Jul 19, 2015 1:36:21 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGuestLib.h
r55422 r57006 541 541 VBGLR3DECL(int) VbglR3GuestPropWrite(uint32_t u32ClientId, const char *pszName, const char *pszValue, const char *pszFlags); 542 542 VBGLR3DECL(int) VbglR3GuestPropWriteValue(uint32_t u32ClientId, const char *pszName, const char *pszValue); 543 VBGLR3DECL(int) VbglR3GuestPropWriteValueV(uint32_t u32ClientId, const char *pszName, const char *pszValueFormat, va_list va); 544 VBGLR3DECL(int) VbglR3GuestPropWriteValueF(uint32_t u32ClientId, const char *pszName, const char *pszValueFormat, ...); 543 VBGLR3DECL(int) VbglR3GuestPropWriteValueV(uint32_t u32ClientId, const char *pszName, 544 const char *pszValueFormat, va_list va) RT_IPRT_FORMAT_ATTR(3, 0); 545 VBGLR3DECL(int) VbglR3GuestPropWriteValueF(uint32_t u32ClientId, const char *pszName, 546 const char *pszValueFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4); 545 547 VBGLR3DECL(int) VbglR3GuestPropRead(uint32_t u32ClientId, const char *pszName, void *pvBuf, uint32_t cbBuf, char **ppszValue, uint64_t *pu64Timestamp, char **ppszFlags, uint32_t *pcbBufActual); 546 548 VBGLR3DECL(int) VbglR3GuestPropReadValue(uint32_t ClientId, const char *pszName, char *pszValue, uint32_t cchValue, uint32_t *pcchValueActual); -
trunk/include/VBox/dbg.h
r55881 r57006 414 414 * @param ... Arguments specified in the format string. 415 415 */ 416 DECLCALLBACKMEMBER(int, pfnPrintf)(PDBGCCMDHLP pCmdHlp, size_t *pcbWritten, const char *pszFormat, ...); 416 DECLCALLBACKMEMBER(int, pfnPrintf)(PDBGCCMDHLP pCmdHlp, size_t *pcbWritten, 417 const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4); 417 418 418 419 /** … … 426 427 * @param args Arguments specified in the format string. 427 428 */ 428 DECLCALLBACKMEMBER(int, pfnPrintfV)(PDBGCCMDHLP pCmdHlp, size_t *pcbWritten, const char *pszFormat, va_list args); 429 DECLCALLBACKMEMBER(int, pfnPrintfV)(PDBGCCMDHLP pCmdHlp, size_t *pcbWritten, 430 const char *pszFormat, va_list args) RT_IPRT_FORMAT_ATTR(3, 0); 429 431 430 432 /** … … 439 441 * @param ... Arguments specified in the format string. 440 442 */ 441 DECLCALLBACKMEMBER(size_t, pfnStrPrintf)(PDBGCCMDHLP pCmdHlp, char *pszBuf, size_t cbBuf, const char *pszFormat, ...); 443 DECLCALLBACKMEMBER(size_t, pfnStrPrintf)(PDBGCCMDHLP pCmdHlp, char *pszBuf, size_t cbBuf, 444 const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(4, 5); 442 445 443 446 /** … … 453 456 */ 454 457 DECLCALLBACKMEMBER(size_t, pfnStrPrintfV)(PDBGCCMDHLP pCmdHlp, char *pszBuf, size_t cbBuf, 455 const char *pszFormat, va_list va) ;458 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(4, 0); 456 459 457 460 /** … … 464 467 * @param ... Format arguments, optional. 465 468 */ 466 DECLCALLBACKMEMBER(int, pfnVBoxError)(PDBGCCMDHLP pCmdHlp, int rc, const char *pszFormat, ...) ;469 DECLCALLBACKMEMBER(int, pfnVBoxError)(PDBGCCMDHLP pCmdHlp, int rc, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4); 467 470 468 471 /** … … 476 479 * @param args Format arguments, optional. 477 480 */ 478 DECLCALLBACKMEMBER(int, pfnVBoxErrorV)(PDBGCCMDHLP pCmdHlp, int rc, const char *pszFormat, va_list args); 481 DECLCALLBACKMEMBER(int, pfnVBoxErrorV)(PDBGCCMDHLP pCmdHlp, int rc, 482 const char *pszFormat, va_list args) RT_IPRT_FORMAT_ATTR(3, 0); 479 483 480 484 /** … … 517 521 * @param ... Format arguments. 518 522 */ 519 DECLCALLBACKMEMBER(int, pfnExec)(PDBGCCMDHLP pCmdHlp, const char *pszExpr, ...) ;523 DECLCALLBACKMEMBER(int, pfnExec)(PDBGCCMDHLP pCmdHlp, const char *pszExpr, ...) RT_IPRT_FORMAT_ATTR(2, 3); 520 524 521 525 /** … … 529 533 * @param va Format arguments. 530 534 */ 531 DECLCALLBACKMEMBER(int, pfnEvalV)(PDBGCCMDHLP pCmdHlp, PDBGCVAR pResult, const char *pszExpr, va_list va); 535 DECLCALLBACKMEMBER(int, pfnEvalV)(PDBGCCMDHLP pCmdHlp, PDBGCVAR pResult, 536 const char *pszExpr, va_list va) RT_IPRT_FORMAT_ATTR(3, 0); 532 537 533 538 /** … … 541 546 * @param va Format arguments. 542 547 */ 543 DECLCALLBACKMEMBER(int, pfnFailV)(PDBGCCMDHLP pCmdHlp, PCDBGCCMD pCmd, const char *pszFormat, va_list va); 548 DECLCALLBACKMEMBER(int, pfnFailV)(PDBGCCMDHLP pCmdHlp, PCDBGCCMD pCmd, 549 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(3, 0); 544 550 545 551 /** … … 557 563 * @see DBGCCmdHlpFailRc 558 564 */ 559 DECLCALLBACKMEMBER(int, pfnFailRcV)(PDBGCCMDHLP pCmdHlp, PCDBGCCMD pCmd, int rc, const char *pszFormat, va_list va); 565 DECLCALLBACKMEMBER(int, pfnFailRcV)(PDBGCCMDHLP pCmdHlp, PCDBGCCMD pCmd, int rc, 566 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(4, 0); 560 567 561 568 /** … … 679 686 * @copydoc DBGCCMDHLP::pfnPrintf 680 687 */ 681 DECLINLINE(int) DBGCCmdHlpPrintf(PDBGCCMDHLP pCmdHlp, const char *pszFormat, ...)688 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(2, 3) DBGCCmdHlpPrintf(PDBGCCMDHLP pCmdHlp, const char *pszFormat, ...) 682 689 { 683 690 va_list va; … … 695 702 * @copydoc DBGCCMDHLP::pfnStrPrintf 696 703 */ 697 DECLINLINE(size_t) DBGCCmdHlpStrPrintf(PDBGCCMDHLP pCmdHlp, char *pszBuf, size_t cbBuf, const char *pszFormat, ...) 704 DECLINLINE(size_t) RT_IPRT_FORMAT_ATTR(4, 5) DBGCCmdHlpStrPrintf(PDBGCCMDHLP pCmdHlp, char *pszBuf, size_t cbBuf, 705 const char *pszFormat, ...) 698 706 { 699 707 va_list va; … … 710 718 * @copydoc FNDBGCHLPVBOXERROR 711 719 */ 712 DECLINLINE(int) DBGCCmdHlpVBoxError(PDBGCCMDHLP pCmdHlp, int rc, const char *pszFormat, ...)720 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(3, 4) DBGCCmdHlpVBoxError(PDBGCCMDHLP pCmdHlp, int rc, const char *pszFormat, ...) 713 721 { 714 722 va_list va; … … 739 747 * @param ... Format arguments. 740 748 */ 741 DECLINLINE(int) DBGCCmdHlpEval(PDBGCCMDHLP pCmdHlp, PDBGCVAR pResult, const char *pszExpr, ...)749 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(3, 4) DBGCCmdHlpEval(PDBGCCMDHLP pCmdHlp, PDBGCVAR pResult, const char *pszExpr, ...) 742 750 { 743 751 va_list va; … … 761 769 * @param ... Format arguments. 762 770 */ 763 DECLINLINE(int) DBGCCmdHlpFail(PDBGCCMDHLP pCmdHlp, PCDBGCCMD pCmd, const char *pszFormat, ...)771 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(3, 4) DBGCCmdHlpFail(PDBGCCMDHLP pCmdHlp, PCDBGCCMD pCmd, const char *pszFormat, ...) 764 772 { 765 773 va_list va; … … 792 800 * @param ... Format arguments. 793 801 */ 794 DECLINLINE(int) DBGCCmdHlpFailRc(PDBGCCMDHLP pCmdHlp, PCDBGCCMD pCmd, int rc, const char *pszFormat, ...) 802 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(4, 5) DBGCCmdHlpFailRc(PDBGCCMDHLP pCmdHlp, PCDBGCCMD pCmd, int rc, 803 const char *pszFormat, ...) 795 804 { 796 805 va_list va; -
trunk/include/VBox/sup.h
r56952 r57006 1034 1034 * @param va The message format arguments. 1035 1035 */ 1036 typedef DECLCALLBACK(void) FNSUPTRUSTEDERROR(const char *pszWhere, SUPINITOP enmWhat, int rc, const char *pszMsgFmt, va_list va); 1036 typedef DECLCALLBACK(void) FNSUPTRUSTEDERROR(const char *pszWhere, SUPINITOP enmWhat, int rc, 1037 const char *pszMsgFmt, va_list va) RT_IPRT_FORMAT_ATTR(4, 0); 1037 1038 /** Pointer to FNSUPTRUSTEDERROR. */ 1038 1039 typedef FNSUPTRUSTEDERROR *PFNSUPTRUSTEDERROR; … … 1837 1838 SUPR0DECL(int) SUPR0QueryVTCaps(PSUPDRVSESSION pSession, uint32_t *pfCaps); 1838 1839 SUPR0DECL(int) SUPR0GipUnmap(PSUPDRVSESSION pSession); 1839 SUPR0DECL(int) SUPR0Printf(const char *pszFormat, ...) ;1840 SUPR0DECL(int) SUPR0Printf(const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(1, 2); 1840 1841 SUPR0DECL(SUPPAGINGMODE) SUPR0GetPagingMode(void); 1841 1842 SUPR0DECL(uint32_t) SUPR0GetKernelFeatures(void); -
trunk/include/VBox/vd-ifs.h
r54591 r57006 244 244 * @param va Error message arguments. 245 245 */ 246 DECLR3CALLBACKMEMBER(void, pfnError, (void *pvUser, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va)); 246 DECLR3CALLBACKMEMBER(void, pfnError, (void *pvUser, int rc, RT_SRC_POS_DECL, 247 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(6, 0)); 247 248 248 249 /** … … 255 256 * @param va Message arguments. 256 257 */ 257 DECLR3CALLBACKMEMBER(int, pfnMessage, (void *pvUser, const char *pszFormat, va_list va) );258 DECLR3CALLBACKMEMBER(int, pfnMessage, (void *pvUser, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(2, 0)); 258 259 259 260 } VDINTERFACEERROR, *PVDINTERFACEERROR; … … 288 289 * @param ... Arguments to the format string. 289 290 */ 290 DECLINLINE(int) vdIfError(PVDINTERFACEERROR pIfError, int rc, RT_SRC_POS_DECL,291 const char *pszFormat, ...)291 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(6, 7) vdIfError(PVDINTERFACEERROR pIfError, int rc, RT_SRC_POS_DECL, 292 const char *pszFormat, ...) 292 293 { 293 294 va_list va; … … 307 308 * @param ... Arguments to the format string. 308 309 */ 309 DECLINLINE(int) vdIfErrorMessage(PVDINTERFACEERROR pIfError, const char *pszFormat, ...)310 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(2, 3) vdIfErrorMessage(PVDINTERFACEERROR pIfError, const char *pszFormat, ...) 310 311 { 311 312 int rc = VINF_SUCCESS; -
trunk/include/VBox/vmm/cfgm.h
r53615 r57006 93 93 VMMR3DECL(int) CFGMR3InsertSubTree(PCFGMNODE pNode, const char *pszName, PCFGMNODE pSubTree, PCFGMNODE *ppChild); 94 94 VMMR3DECL(int) CFGMR3InsertNode(PCFGMNODE pNode, const char *pszName, PCFGMNODE *ppChild); 95 VMMR3DECL(int) CFGMR3InsertNodeF(PCFGMNODE pNode, PCFGMNODE *ppChild, const char *pszNameFormat, ...); 96 VMMR3DECL(int) CFGMR3InsertNodeFV(PCFGMNODE pNode, PCFGMNODE *ppChild, const char *pszNameFormat, va_list Args); 95 VMMR3DECL(int) CFGMR3InsertNodeF(PCFGMNODE pNode, PCFGMNODE *ppChild, 96 const char *pszNameFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4); 97 VMMR3DECL(int) CFGMR3InsertNodeFV(PCFGMNODE pNode, PCFGMNODE *ppChild, 98 const char *pszNameFormat, va_list Args) RT_IPRT_FORMAT_ATTR(3, 0); 97 99 VMMR3DECL(void) CFGMR3SetRestrictedRoot(PCFGMNODE pNode); 98 100 VMMR3DECL(void) CFGMR3RemoveNode(PCFGMNODE pNode); … … 100 102 VMMR3DECL(int) CFGMR3InsertString(PCFGMNODE pNode, const char *pszName, const char *pszString); 101 103 VMMR3DECL(int) CFGMR3InsertStringN(PCFGMNODE pNode, const char *pszName, const char *pszString, size_t cchString); 102 VMMR3DECL(int) CFGMR3InsertStringF(PCFGMNODE pNode, const char *pszName, const char *pszFormat, ...); 103 VMMR3DECL(int) CFGMR3InsertStringFV(PCFGMNODE pNode, const char *pszName, const char *pszFormat, va_list va); 104 VMMR3DECL(int) CFGMR3InsertStringF(PCFGMNODE pNode, const char *pszName, 105 const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4); 106 VMMR3DECL(int) CFGMR3InsertStringFV(PCFGMNODE pNode, const char *pszName, 107 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(3, 0); 104 108 VMMR3DECL(int) CFGMR3InsertStringW(PCFGMNODE pNode, const char *pszName, PCRTUTF16 pwszValue); 105 109 VMMR3DECL(int) CFGMR3InsertBytes(PCFGMNODE pNode, const char *pszName, const void *pvBytes, size_t cbBytes); … … 191 195 VMMR3DECL(PCFGMNODE) CFGMR3GetParentEx(PVM pVM, PCFGMNODE pNode); 192 196 VMMR3DECL(PCFGMNODE) CFGMR3GetChild(PCFGMNODE pNode, const char *pszPath); 193 VMMR3DECL(PCFGMNODE) CFGMR3GetChildF(PCFGMNODE pNode, const char *pszPathFormat, ...) ;194 VMMR3DECL(PCFGMNODE) CFGMR3GetChildFV(PCFGMNODE pNode, const char *pszPathFormat, va_list Args) ;197 VMMR3DECL(PCFGMNODE) CFGMR3GetChildF(PCFGMNODE pNode, const char *pszPathFormat, ...) RT_IPRT_FORMAT_ATTR(2, 3); 198 VMMR3DECL(PCFGMNODE) CFGMR3GetChildFV(PCFGMNODE pNode, const char *pszPathFormat, va_list Args) RT_IPRT_FORMAT_ATTR(3, 0); 195 199 VMMR3DECL(PCFGMNODE) CFGMR3GetFirstChild(PCFGMNODE pNode); 196 200 VMMR3DECL(PCFGMNODE) CFGMR3GetNextChild(PCFGMNODE pCur); -
trunk/include/VBox/vmm/dbgf.h
r56291 r57006 289 289 VMMR3DECL(int) DBGFR3Event(PVM pVM, DBGFEVENTTYPE enmEvent); 290 290 VMMR3DECL(int) DBGFR3EventSrc(PVM pVM, DBGFEVENTTYPE enmEvent, const char *pszFile, unsigned uLine, 291 const char *pszFunction, const char *pszFormat, ...) ;291 const char *pszFunction, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(6, 7); 292 292 VMMR3DECL(int) DBGFR3EventSrcV(PVM pVM, DBGFEVENTTYPE enmEvent, const char *pszFile, unsigned uLine, 293 const char *pszFunction, const char *pszFormat, va_list args) ;293 const char *pszFunction, const char *pszFormat, va_list args) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(6, 0); 294 294 VMMR3_INT_DECL(int) DBGFR3EventAssertion(PVM pVM, DBGFEVENTTYPE enmEvent, const char *pszMsg1, const char *pszMsg2); 295 295 VMMR3_INT_DECL(int) DBGFR3EventBreakpoint(PVM pVM, DBGFEVENTTYPE enmEvent); … … 446 446 * @param ... Arguments. 447 447 */ 448 DECLCALLBACKMEMBER(void, pfnPrintf)(PCDBGFINFOHLP pHlp, const char *pszFormat, ...) ;448 DECLCALLBACKMEMBER(void, pfnPrintf)(PCDBGFINFOHLP pHlp, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(2, 3); 449 449 450 450 /** … … 455 455 * @param args Argument list. 456 456 */ 457 DECLCALLBACKMEMBER(void, pfnPrintfV)(PCDBGFINFOHLP pHlp, const char *pszFormat, va_list args) ;457 DECLCALLBACKMEMBER(void, pfnPrintfV)(PCDBGFINFOHLP pHlp, const char *pszFormat, va_list args) RT_IPRT_FORMAT_ATTR(2, 0); 458 458 } DBGFINFOHLP; 459 459 -
trunk/include/VBox/vmm/mm.h
r56291 r57006 321 321 VMMR3DECL(char *) MMR3HeapStrDup(PVM pVM, MMTAG enmTag, const char *psz); 322 322 VMMR3DECL(char *) MMR3HeapStrDupU(PUVM pUVM, MMTAG enmTag, const char *psz); 323 VMMR3DECL(char *) MMR3HeapAPrintf(PVM pVM, MMTAG enmTag, const char *pszFormat, ...) ;324 VMMR3DECL(char *) MMR3HeapAPrintfU(PUVM pUVM, MMTAG enmTag, const char *pszFormat, ...) ;325 VMMR3DECL(char *) MMR3HeapAPrintfV(PVM pVM, MMTAG enmTag, const char *pszFormat, va_list va) ;326 VMMR3DECL(char *) MMR3HeapAPrintfVU(PUVM pUVM, MMTAG enmTag, const char *pszFormat, va_list va) ;323 VMMR3DECL(char *) MMR3HeapAPrintf(PVM pVM, MMTAG enmTag, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4); 324 VMMR3DECL(char *) MMR3HeapAPrintfU(PUVM pUVM, MMTAG enmTag, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4); 325 VMMR3DECL(char *) MMR3HeapAPrintfV(PVM pVM, MMTAG enmTag, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(3, 0); 326 VMMR3DECL(char *) MMR3HeapAPrintfVU(PUVM pUVM, MMTAG enmTag, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(3, 0); 327 327 VMMR3DECL(void) MMR3HeapFree(void *pv); 328 328 /** @} */ -
trunk/include/VBox/vmm/pdmcritsect.h
r56402 r57006 59 59 VMMR3DECL(uint32_t) PDMR3CritSectCountOwned(PVM pVM, char *pszNames, size_t cbNames); 60 60 61 VMMR3DECL(int) PDMR3CritSectInit(PVM pVM, PPDMCRITSECT pCritSect, RT_SRC_POS_DECL, const char *pszNameFmt, ...); 61 VMMR3DECL(int) PDMR3CritSectInit(PVM pVM, PPDMCRITSECT pCritSect, RT_SRC_POS_DECL, 62 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR(6, 7); 62 63 VMMR3DECL(int) PDMR3CritSectEnterEx(PPDMCRITSECT pCritSect, bool fCallRing3); 63 64 VMMR3DECL(bool) PDMR3CritSectYield(PPDMCRITSECT pCritSect); -
trunk/include/VBox/vmm/pdmcritsectrw.h
r56291 r57006 51 51 } PDMCRITSECTRW; 52 52 53 VMMR3DECL(int) PDMR3CritSectRwInit(PVM pVM, PPDMCRITSECTRW pCritSect, RT_SRC_POS_DECL, const char *pszNameFmt, ...); 53 VMMR3DECL(int) PDMR3CritSectRwInit(PVM pVM, PPDMCRITSECTRW pCritSect, RT_SRC_POS_DECL, 54 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR(6, 7); 54 55 VMMR3DECL(int) PDMR3CritSectRwDelete(PPDMCRITSECTRW pCritSect); 55 56 VMMR3DECL(const char *) PDMR3CritSectRwName(PCPDMCRITSECTRW pCritSect); -
trunk/include/VBox/vmm/pdmdev.h
r56291 r57006 2769 2769 * @param ... Error message arguments. 2770 2770 */ 2771 DECLR3CALLBACKMEMBER(int, pfnVMSetError,(PPDMDEVINS pDevIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...)); 2771 DECLR3CALLBACKMEMBER(int, pfnVMSetError,(PPDMDEVINS pDevIns, int rc, RT_SRC_POS_DECL, 2772 const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(6, 7)); 2772 2773 2773 2774 /** … … 2781 2782 * @param va Error message arguments. 2782 2783 */ 2783 DECLR3CALLBACKMEMBER(int, pfnVMSetErrorV,(PPDMDEVINS pDevIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va)); 2784 DECLR3CALLBACKMEMBER(int, pfnVMSetErrorV,(PPDMDEVINS pDevIns, int rc, RT_SRC_POS_DECL, 2785 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(6, 0)); 2784 2786 2785 2787 /** … … 2793 2795 * @param ... Error message arguments. 2794 2796 */ 2795 DECLR3CALLBACKMEMBER(int, pfnVMSetRuntimeError,(PPDMDEVINS pDevIns, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, ...)); 2797 DECLR3CALLBACKMEMBER(int, pfnVMSetRuntimeError,(PPDMDEVINS pDevIns, uint32_t fFlags, const char *pszErrorId, 2798 const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(4, 5)); 2796 2799 2797 2800 /** … … 2805 2808 * @param va Error message arguments. 2806 2809 */ 2807 DECLR3CALLBACKMEMBER(int, pfnVMSetRuntimeErrorV,(PPDMDEVINS pDevIns, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, va_list va)); 2810 DECLR3CALLBACKMEMBER(int, pfnVMSetRuntimeErrorV,(PPDMDEVINS pDevIns, uint32_t fFlags, const char *pszErrorId, 2811 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(4, 0)); 2808 2812 2809 2813 /** … … 2821 2825 * @param args Message parameters. 2822 2826 */ 2823 DECLR3CALLBACKMEMBER(int, pfnDBGFStopV,(PPDMDEVINS pDevIns, const char *pszFile, unsigned iLine, const char *pszFunction, const char *pszFormat, va_list args)); 2827 DECLR3CALLBACKMEMBER(int, pfnDBGFStopV,(PPDMDEVINS pDevIns, const char *pszFile, unsigned iLine, const char *pszFunction, 2828 const char *pszFormat, va_list args) RT_IPRT_FORMAT_ATTR(5, 0)); 2824 2829 2825 2830 /** … … 2894 2899 * @param ... Arguments to the format string. 2895 2900 */ 2896 DECLR3CALLBACKMEMBER(void, pfnSTAMRegisterF,(PPDMDEVINS pDevIns, void *pvSample, STAMTYPE enmType, STAMVISIBILITY enmVisibility, 2897 STAMUNIT enmUnit, const char *pszDesc, const char *pszName, ...)); 2901 DECLR3CALLBACKMEMBER(void, pfnSTAMRegisterF,(PPDMDEVINS pDevIns, void *pvSample, STAMTYPE enmType, 2902 STAMVISIBILITY enmVisibility, STAMUNIT enmUnit, const char *pszDesc, 2903 const char *pszName, ...) RT_IPRT_FORMAT_ATTR(7, 8)); 2898 2904 2899 2905 /** … … 2913 2919 * @param args Arguments to the format string. 2914 2920 */ 2915 DECLR3CALLBACKMEMBER(void, pfnSTAMRegisterV,(PPDMDEVINS pDevIns, void *pvSample, STAMTYPE enmType, STAMVISIBILITY enmVisibility, 2916 STAMUNIT enmUnit, const char *pszDesc, const char *pszName, va_list args)); 2921 DECLR3CALLBACKMEMBER(void, pfnSTAMRegisterV,(PPDMDEVINS pDevIns, void *pvSample, STAMTYPE enmType, 2922 STAMVISIBILITY enmVisibility, STAMUNIT enmUnit, const char *pszDesc, 2923 const char *pszName, va_list args) RT_IPRT_FORMAT_ATTR(7, 0)); 2917 2924 2918 2925 /** … … 3096 3103 */ 3097 3104 DECLR3CALLBACKMEMBER(int, pfnCritSectInit,(PPDMDEVINS pDevIns, PPDMCRITSECT pCritSect, RT_SRC_POS_DECL, 3098 const char *pszNameFmt, va_list va) );3105 const char *pszNameFmt, va_list va) RT_IPRT_FORMAT_ATTR(6, 0)); 3099 3106 3100 3107 /** … … 3772 3779 * @param ... Error message arguments. 3773 3780 */ 3774 DECLRCCALLBACKMEMBER(int, pfnVMSetError,(PPDMDEVINS pDevIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...)); 3781 DECLRCCALLBACKMEMBER(int, pfnVMSetError,(PPDMDEVINS pDevIns, int rc, RT_SRC_POS_DECL, 3782 const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(6, 7)); 3775 3783 3776 3784 /** … … 3784 3792 * @param va Error message arguments. 3785 3793 */ 3786 DECLRCCALLBACKMEMBER(int, pfnVMSetErrorV,(PPDMDEVINS pDevIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va)); 3794 DECLRCCALLBACKMEMBER(int, pfnVMSetErrorV,(PPDMDEVINS pDevIns, int rc, RT_SRC_POS_DECL, 3795 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(6, 0)); 3787 3796 3788 3797 /** … … 3796 3805 * @param ... Error message arguments. 3797 3806 */ 3798 DECLRCCALLBACKMEMBER(int, pfnVMSetRuntimeError,(PPDMDEVINS pDevIns, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, ...)); 3807 DECLRCCALLBACKMEMBER(int, pfnVMSetRuntimeError,(PPDMDEVINS pDevIns, uint32_t fFlags, const char *pszErrorId, 3808 const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(4, 5)); 3799 3809 3800 3810 /** … … 3808 3818 * @param va Error message arguments. 3809 3819 */ 3810 DECLRCCALLBACKMEMBER(int, pfnVMSetRuntimeErrorV,(PPDMDEVINS pDevIns, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, va_list va)); 3820 DECLRCCALLBACKMEMBER(int, pfnVMSetRuntimeErrorV,(PPDMDEVINS pDevIns, uint32_t fFlags, const char *pszErrorId, 3821 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(4, 0)); 3811 3822 3812 3823 /** … … 3997 4008 * @param ... Error message arguments. 3998 4009 */ 3999 DECLR0CALLBACKMEMBER(int, pfnVMSetError,(PPDMDEVINS pDevIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...)); 4010 DECLR0CALLBACKMEMBER(int, pfnVMSetError,(PPDMDEVINS pDevIns, int rc, RT_SRC_POS_DECL, 4011 const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(6, 7)); 4000 4012 4001 4013 /** … … 4009 4021 * @param va Error message arguments. 4010 4022 */ 4011 DECLR0CALLBACKMEMBER(int, pfnVMSetErrorV,(PPDMDEVINS pDevIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va)); 4023 DECLR0CALLBACKMEMBER(int, pfnVMSetErrorV,(PPDMDEVINS pDevIns, int rc, RT_SRC_POS_DECL, 4024 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(6, 0)); 4012 4025 4013 4026 /** … … 4021 4034 * @param ... Error message arguments. 4022 4035 */ 4023 DECLR0CALLBACKMEMBER(int, pfnVMSetRuntimeError,(PPDMDEVINS pDevIns, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, ...)); 4036 DECLR0CALLBACKMEMBER(int, pfnVMSetRuntimeError,(PPDMDEVINS pDevIns, uint32_t fFlags, const char *pszErrorId, 4037 const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(4, 5)); 4024 4038 4025 4039 /** … … 4033 4047 * @param va Error message arguments. 4034 4048 */ 4035 DECLR0CALLBACKMEMBER(int, pfnVMSetRuntimeErrorV,(PPDMDEVINS pDevIns, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, va_list va)); 4049 DECLR0CALLBACKMEMBER(int, pfnVMSetRuntimeErrorV,(PPDMDEVINS pDevIns, uint32_t fFlags, const char *pszErrorId, 4050 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(4, 0)); 4036 4051 4037 4052 /** … … 4711 4726 * @copydoc PDMDEVHLPR3::pfnVMSetError 4712 4727 */ 4713 DECLINLINE(int) PDMDevHlpVMSetError(PPDMDEVINS pDevIns, const int rc, RT_SRC_POS_DECL, const char *pszFormat, ...) 4728 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(6, 7) PDMDevHlpVMSetError(PPDMDEVINS pDevIns, const int rc, RT_SRC_POS_DECL, 4729 const char *pszFormat, ...) 4714 4730 { 4715 4731 va_list va; … … 4723 4739 * @copydoc PDMDEVHLPR3::pfnVMSetRuntimeError 4724 4740 */ 4725 DECLINLINE(int) PDMDevHlpVMSetRuntimeError(PPDMDEVINS pDevIns, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, ...) 4741 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(4, 5) PDMDevHlpVMSetRuntimeError(PPDMDEVINS pDevIns, uint32_t fFlags, const char *pszErrorId, 4742 const char *pszFormat, ...) 4726 4743 { 4727 4744 va_list va; … … 4743 4760 * @param ... Message parameters. 4744 4761 */ 4745 DECLINLINE(int) PDMDevHlpDBGFStop(PPDMDEVINS pDevIns, RT_SRC_POS_DECL, const char *pszFormat, ...)4762 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(5, 6) PDMDevHlpDBGFStop(PPDMDEVINS pDevIns, RT_SRC_POS_DECL, const char *pszFormat, ...) 4746 4763 { 4747 4764 #ifdef VBOX_STRICT … … 4800 4817 * @copydoc PDMDEVHLPR3::pfnSTAMRegisterF 4801 4818 */ 4802 DECLINLINE(void) PDMDevHlpSTAMRegisterF(PPDMDEVINS pDevIns, void *pvSample, STAMTYPE enmType, STAMVISIBILITY enmVisibility, STAMUNIT enmUnit, 4803 const char *pszDesc, const char *pszName, ...) 4819 DECLINLINE(void) RT_IPRT_FORMAT_ATTR(7, 8) PDMDevHlpSTAMRegisterF(PPDMDEVINS pDevIns, void *pvSample, STAMTYPE enmType, 4820 STAMVISIBILITY enmVisibility, STAMUNIT enmUnit, 4821 const char *pszDesc, const char *pszName, ...) 4804 4822 { 4805 4823 va_list va; … … 4925 4943 * @param ... Arguments for the format string. 4926 4944 */ 4927 DECLINLINE(int) PDMDevHlpCritSectInit(PPDMDEVINS pDevIns, PPDMCRITSECT pCritSect, RT_SRC_POS_DECL, const char *pszNameFmt, ...) 4945 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(6, 7) PDMDevHlpCritSectInit(PPDMDEVINS pDevIns, PPDMCRITSECT pCritSect, RT_SRC_POS_DECL, 4946 const char *pszNameFmt, ...) 4928 4947 { 4929 4948 int rc; -
trunk/include/VBox/vmm/pdmdrv.h
r56291 r57006 581 581 * @param ... Error message arguments. 582 582 */ 583 DECLRCCALLBACKMEMBER(int, pfnVMSetError,(PPDMDRVINS pDrvIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...)); 583 DECLRCCALLBACKMEMBER(int, pfnVMSetError,(PPDMDRVINS pDrvIns, int rc, RT_SRC_POS_DECL, 584 const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(6, 7)); 584 585 585 586 /** … … 593 594 * @param va Error message arguments. 594 595 */ 595 DECLRCCALLBACKMEMBER(int, pfnVMSetErrorV,(PPDMDRVINS pDrvIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va)); 596 DECLRCCALLBACKMEMBER(int, pfnVMSetErrorV,(PPDMDRVINS pDrvIns, int rc, RT_SRC_POS_DECL, 597 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(6, 0)); 596 598 597 599 /** … … 605 607 * @param ... Error message arguments. 606 608 */ 607 DECLRCCALLBACKMEMBER(int, pfnVMSetRuntimeError,(PPDMDRVINS pDrvIns, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, ...)); 609 DECLRCCALLBACKMEMBER(int, pfnVMSetRuntimeError,(PPDMDRVINS pDrvIns, uint32_t fFlags, const char *pszErrorId, 610 const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(4, 5)); 608 611 609 612 /** … … 617 620 * @param va Error message arguments. 618 621 */ 619 DECLRCCALLBACKMEMBER(int, pfnVMSetRuntimeErrorV,(PPDMDRVINS pDrvIns, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, va_list va)); 622 DECLRCCALLBACKMEMBER(int, pfnVMSetRuntimeErrorV,(PPDMDRVINS pDrvIns, uint32_t fFlags, const char *pszErrorId, 623 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(4, 0)); 620 624 621 625 /** … … 677 681 * @param ... Error message arguments. 678 682 */ 679 DECLR0CALLBACKMEMBER(int, pfnVMSetError,(PPDMDRVINS pDrvIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...)); 683 DECLR0CALLBACKMEMBER(int, pfnVMSetError,(PPDMDRVINS pDrvIns, int rc, RT_SRC_POS_DECL, 684 const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(6, 7)); 680 685 681 686 /** … … 689 694 * @param va Error message arguments. 690 695 */ 691 DECLR0CALLBACKMEMBER(int, pfnVMSetErrorV,(PPDMDRVINS pDrvIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va)); 696 DECLR0CALLBACKMEMBER(int, pfnVMSetErrorV,(PPDMDRVINS pDrvIns, int rc, RT_SRC_POS_DECL, 697 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(6, 0)); 692 698 693 699 /** … … 701 707 * @param ... Error message arguments. 702 708 */ 703 DECLR0CALLBACKMEMBER(int, pfnVMSetRuntimeError,(PPDMDRVINS pDrvIns, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, ...)); 709 DECLR0CALLBACKMEMBER(int, pfnVMSetRuntimeError,(PPDMDRVINS pDrvIns, uint32_t fFlags, const char *pszErrorId, 710 const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(4, 5)); 704 711 705 712 /** … … 713 720 * @param va Error message arguments. 714 721 */ 715 DECLR0CALLBACKMEMBER(int, pfnVMSetRuntimeErrorV,(PPDMDRVINS pDrvIns, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, va_list va)); 722 DECLR0CALLBACKMEMBER(int, pfnVMSetRuntimeErrorV,(PPDMDRVINS pDrvIns, uint32_t fFlags, const char *pszErrorId, 723 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(4, 0)); 716 724 717 725 /** … … 843 851 * @param ... Error message arguments. 844 852 */ 845 DECLR3CALLBACKMEMBER(int, pfnVMSetError,(PPDMDRVINS pDrvIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...)); 853 DECLR3CALLBACKMEMBER(int, pfnVMSetError,(PPDMDRVINS pDrvIns, int rc, RT_SRC_POS_DECL, 854 const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(6, 7)); 846 855 847 856 /** … … 855 864 * @param va Error message arguments. 856 865 */ 857 DECLR3CALLBACKMEMBER(int, pfnVMSetErrorV,(PPDMDRVINS pDrvIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va)); 866 DECLR3CALLBACKMEMBER(int, pfnVMSetErrorV,(PPDMDRVINS pDrvIns, int rc, RT_SRC_POS_DECL, 867 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(6, 0)); 858 868 859 869 /** … … 867 877 * @param ... Error message arguments. 868 878 */ 869 DECLR3CALLBACKMEMBER(int, pfnVMSetRuntimeError,(PPDMDRVINS pDrvIns, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, ...)); 879 DECLR3CALLBACKMEMBER(int, pfnVMSetRuntimeError,(PPDMDRVINS pDrvIns, uint32_t fFlags, const char *pszErrorId, 880 const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(4, 5)); 870 881 871 882 /** … … 879 890 * @param va Error message arguments. 880 891 */ 881 DECLR3CALLBACKMEMBER(int, pfnVMSetRuntimeErrorV,(PPDMDRVINS pDrvIns, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, va_list va)); 892 DECLR3CALLBACKMEMBER(int, pfnVMSetRuntimeErrorV,(PPDMDRVINS pDrvIns, uint32_t fFlags, const char *pszErrorId, 893 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(4, 0)); 882 894 883 895 /** … … 1048 1060 */ 1049 1061 DECLR3CALLBACKMEMBER(void, pfnSTAMRegisterF,(PPDMDRVINS pDrvIns, void *pvSample, STAMTYPE enmType, STAMVISIBILITY enmVisibility, 1050 STAMUNIT enmUnit, const char *pszDesc, const char *pszName, ...)); 1062 STAMUNIT enmUnit, const char *pszDesc, 1063 const char *pszName, ...) RT_IPRT_FORMAT_ATTR(7, 8)); 1051 1064 1052 1065 /** … … 1064 1077 */ 1065 1078 DECLR3CALLBACKMEMBER(void, pfnSTAMRegisterV,(PPDMDRVINS pDrvIns, void *pvSample, STAMTYPE enmType, STAMVISIBILITY enmVisibility, 1066 STAMUNIT enmUnit, const char *pszDesc, const char *pszName, va_list args)); 1079 STAMUNIT enmUnit, const char *pszDesc, 1080 const char *pszName, va_list args) RT_IPRT_FORMAT_ATTR(7, 0)); 1067 1081 1068 1082 /** … … 1342 1356 * @copydoc PDMDRVHLP::pfnVMSetError 1343 1357 */ 1344 DECLINLINE(int) PDMDrvHlpVMSetError(PPDMDRVINS pDrvIns, const int rc, RT_SRC_POS_DECL, const char *pszFormat, ...) 1358 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(6, 7) PDMDrvHlpVMSetError(PPDMDRVINS pDrvIns, const int rc, RT_SRC_POS_DECL, 1359 const char *pszFormat, ...) 1345 1360 { 1346 1361 va_list va; … … 1360 1375 * @copydoc PDMDRVHLP::pfnVMSetErrorV 1361 1376 */ 1362 DECLINLINE(int) PDMDrvHlpVMSetErrorV(PPDMDRVINS pDrvIns, const int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va) 1377 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(6, 0) PDMDrvHlpVMSetErrorV(PPDMDRVINS pDrvIns, const int rc, RT_SRC_POS_DECL, 1378 const char *pszFormat, va_list va) 1363 1379 { 1364 1380 return pDrvIns->CTX_SUFF(pHlp)->pfnVMSetErrorV(pDrvIns, rc, RT_SRC_POS_ARGS, pszFormat, va); … … 1369 1385 * @copydoc PDMDRVHLP::pfnVMSetRuntimeError 1370 1386 */ 1371 DECLINLINE(int) PDMDrvHlpVMSetRuntimeError(PPDMDRVINS pDrvIns, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, ...) 1387 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(4, 5) PDMDrvHlpVMSetRuntimeError(PPDMDRVINS pDrvIns, uint32_t fFlags, const char *pszErrorId, 1388 const char *pszFormat, ...) 1372 1389 { 1373 1390 va_list va; … … 1388 1405 * @copydoc PDMDRVHLP::pfnVMSetRuntimeErrorV 1389 1406 */ 1390 DECLINLINE(int) PDMDrvHlpVMSetRuntimeErrorV(PPDMDRVINS pDrvIns, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, va_list va) 1407 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(4, 0) PDMDrvHlpVMSetRuntimeErrorV(PPDMDRVINS pDrvIns, uint32_t fFlags, 1408 const char *pszErrorId, const char *pszFormat, va_list va) 1391 1409 { 1392 1410 return pDrvIns->CTX_SUFF(pHlp)->pfnVMSetRuntimeErrorV(pDrvIns, fFlags, pszErrorId, pszFormat, va); … … 1600 1618 * @copydoc PDMDRVHLP::pfnSTAMRegisterF 1601 1619 */ 1602 DECLINLINE(void) PDMDrvHlpSTAMRegisterF(PPDMDRVINS pDrvIns, void *pvSample, STAMTYPE enmType, STAMVISIBILITY enmVisibility, STAMUNIT enmUnit, 1603 const char *pszDesc, const char *pszName, ...) 1620 DECLINLINE(void) RT_IPRT_FORMAT_ATTR(7, 8) PDMDrvHlpSTAMRegisterF(PPDMDRVINS pDrvIns, void *pvSample, STAMTYPE enmType, 1621 STAMVISIBILITY enmVisibility, STAMUNIT enmUnit, 1622 const char *pszDesc, const char *pszName, ...) 1604 1623 { 1605 1624 va_list va; -
trunk/include/VBox/vmm/pdmusb.h
r56291 r57006 503 503 * @param va Message parameters. 504 504 */ 505 DECLR3CALLBACKMEMBER(int, pfnDBGFStopV,(PPDMUSBINS pUsbIns, const char *pszFile, unsigned iLine, const char *pszFunction, const char *pszFormat, va_list va)); 505 DECLR3CALLBACKMEMBER(int, pfnDBGFStopV,(PPDMUSBINS pUsbIns, const char *pszFile, unsigned iLine, const char *pszFunction, 506 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(5, 0)); 506 507 507 508 /** … … 595 596 * @param va Arguments to the format string. 596 597 */ 597 DECLR3CALLBACKMEMBER(void, pfnSTAMRegisterV,(PPDMUSBINS pUsbIns, void *pvSample, STAMTYPE enmType, STAMVISIBILITY enmVisibility, 598 STAMUNIT enmUnit, const char *pszDesc, const char *pszName, va_list va)); 598 DECLR3CALLBACKMEMBER(void, pfnSTAMRegisterV,(PPDMUSBINS pUsbIns, void *pvSample, STAMTYPE enmType, 599 STAMVISIBILITY enmVisibility, STAMUNIT enmUnit, const char *pszDesc, 600 const char *pszName, va_list va) RT_IPRT_FORMAT_ATTR(7, 0)); 599 601 600 602 /** … … 624 626 * @param va Error message arguments. 625 627 */ 626 DECLR3CALLBACKMEMBER(int, pfnVMSetErrorV,(PPDMUSBINS pUsbIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va)); 628 DECLR3CALLBACKMEMBER(int, pfnVMSetErrorV,(PPDMUSBINS pUsbIns, int rc, RT_SRC_POS_DECL, 629 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(6, 0)); 627 630 628 631 /** … … 636 639 * @param va Error message arguments. 637 640 */ 638 DECLR3CALLBACKMEMBER(int, pfnVMSetRuntimeErrorV,(PPDMUSBINS pUsbIns, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, va_list va)); 641 DECLR3CALLBACKMEMBER(int, pfnVMSetRuntimeErrorV,(PPDMUSBINS pUsbIns, uint32_t fFlags, const char *pszErrorId, 642 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(4, 0)); 639 643 640 644 /** … … 892 896 * @param ... Message parameters. 893 897 */ 894 DECLINLINE(int) PDMUsbDBGFStop(PPDMUSBINS pUsbIns, RT_SRC_POS_DECL, const char *pszFormat, ...)898 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(5, 6) PDMUsbDBGFStop(PPDMUSBINS pUsbIns, RT_SRC_POS_DECL, const char *pszFormat, ...) 895 899 { 896 900 #ifdef VBOX_STRICT … … 955 959 * @param ... Error message arguments. 956 960 */ 957 DECLINLINE(int) PDMUsbHlpVMSetError(PPDMUSBINS pUsbIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...) 961 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(6, 7) PDMUsbHlpVMSetError(PPDMUSBINS pUsbIns, int rc, RT_SRC_POS_DECL, 962 const char *pszFormat, ...) 958 963 { 959 964 va_list va; -
trunk/include/VBox/vmm/ssm.h
r56291 r57006 1284 1284 VMMR3DECL(int) SSMR3Skip(PSSMHANDLE pSSM, size_t cb); 1285 1285 VMMR3DECL(int) SSMR3SkipToEndOfUnit(PSSMHANDLE pSSM); 1286 VMMR3DECL(int) SSMR3SetLoadError(PSSMHANDLE pSSM, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...) ;1287 VMMR3DECL(int) SSMR3SetLoadErrorV(PSSMHANDLE pSSM, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va) ;1288 VMMR3DECL(int) SSMR3SetCfgError(PSSMHANDLE pSSM, RT_SRC_POS_DECL, const char *pszFormat, ...) ;1286 VMMR3DECL(int) SSMR3SetLoadError(PSSMHANDLE pSSM, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(6, 7); 1287 VMMR3DECL(int) SSMR3SetLoadErrorV(PSSMHANDLE pSSM, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(6, 0); 1288 VMMR3DECL(int) SSMR3SetCfgError(PSSMHANDLE pSSM, RT_SRC_POS_DECL, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(5, 6); 1289 1289 1290 1290 /** @} */ -
trunk/include/VBox/vmm/stam.h
r56291 r57006 1165 1165 1166 1166 VMMR3DECL(int) STAMR3RegisterFU(PUVM pUVM, void *pvSample, STAMTYPE enmType, STAMVISIBILITY enmVisibility, STAMUNIT enmUnit, 1167 const char *pszDesc, const char *pszName, ...) ;1167 const char *pszDesc, const char *pszName, ...) RT_IPRT_FORMAT_ATTR(7, 8); 1168 1168 VMMR3DECL(int) STAMR3RegisterF(PVM pVM, void *pvSample, STAMTYPE enmType, STAMVISIBILITY enmVisibility, STAMUNIT enmUnit, 1169 const char *pszDesc, const char *pszName, ...) ;1169 const char *pszDesc, const char *pszName, ...) RT_IPRT_FORMAT_ATTR(7, 8); 1170 1170 VMMR3DECL(int) STAMR3RegisterVU(PUVM pUVM, void *pvSample, STAMTYPE enmType, STAMVISIBILITY enmVisibility, STAMUNIT enmUnit, 1171 const char *pszDesc, const char *pszName, va_list args) ;1171 const char *pszDesc, const char *pszName, va_list args) RT_IPRT_FORMAT_ATTR(7, 0); 1172 1172 VMMR3DECL(int) STAMR3RegisterV(PVM pVM, void *pvSample, STAMTYPE enmType, STAMVISIBILITY enmVisibility, STAMUNIT enmUnit, 1173 const char *pszDesc, const char *pszName, va_list args) ;1173 const char *pszDesc, const char *pszName, va_list args) RT_IPRT_FORMAT_ATTR(7, 0); 1174 1174 1175 1175 /** … … 1196 1196 VMMR3DECL(int) STAMR3RegisterCallback(PVM pVM, void *pvSample, STAMVISIBILITY enmVisibility, STAMUNIT enmUnit, 1197 1197 PFNSTAMR3CALLBACKRESET pfnReset, PFNSTAMR3CALLBACKPRINT pfnPrint, 1198 const char *pszDesc, const char *pszName, ...) ;1198 const char *pszDesc, const char *pszName, ...) RT_IPRT_FORMAT_ATTR(8, 9); 1199 1199 VMMR3DECL(int) STAMR3RegisterCallbackV(PVM pVM, void *pvSample, STAMVISIBILITY enmVisibility, STAMUNIT enmUnit, 1200 1200 PFNSTAMR3CALLBACKRESET pfnReset, PFNSTAMR3CALLBACKPRINT pfnPrint, 1201 const char *pszDesc, const char *pszName, va_list args) ;1201 const char *pszDesc, const char *pszName, va_list args) RT_IPRT_FORMAT_ATTR(8, 0); 1202 1202 VMMR3DECL(int) STAMR3Deregister(PUVM pUVM, const char *pszPat); 1203 VMMR3DECL(int) STAMR3DeregisterF(PUVM pUVM, const char *pszPatFmt, ...) ;1204 VMMR3DECL(int) STAMR3DeregisterV(PUVM pUVM, const char *pszPatFmt, va_list va) ;1203 VMMR3DECL(int) STAMR3DeregisterF(PUVM pUVM, const char *pszPatFmt, ...) RT_IPRT_FORMAT_ATTR(2, 3); 1204 VMMR3DECL(int) STAMR3DeregisterV(PUVM pUVM, const char *pszPatFmt, va_list va) RT_IPRT_FORMAT_ATTR(2, 0); 1205 1205 VMMR3DECL(int) STAMR3DeregisterByAddr(PUVM pUVM, void *pvSample); 1206 1206 -
trunk/include/VBox/vmm/vmapi.h
r56291 r57006 105 105 typedef FNVMATERROR *PFNVMATERROR; 106 106 107 VMMDECL(int) VMSetError(PVM pVM, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...) ;108 VMMDECL(int) VMSetErrorV(PVM pVM, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list args) ;107 VMMDECL(int) VMSetError(PVM pVM, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(6, 7); 108 VMMDECL(int) VMSetErrorV(PVM pVM, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list args) RT_IPRT_FORMAT_ATTR(6, 7); 109 109 110 110 /** @def VM_SET_ERROR … … 152 152 */ 153 153 typedef DECLCALLBACK(void) FNVMATRUNTIMEERROR(PUVM pUVM, void *pvUser, uint32_t fFlags, const char *pszErrorId, 154 const char *pszFormat, va_list va) ;154 const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(5, 0); 155 155 /** Pointer to a VM runtime error callback. */ 156 156 typedef FNVMATRUNTIMEERROR *PFNVMATRUNTIMEERROR; 157 157 158 VMMDECL(int) VMSetRuntimeError(PVM pVM, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, ...); 159 VMMDECL(int) VMSetRuntimeErrorV(PVM pVM, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, va_list args); 158 VMMDECL(int) VMSetRuntimeError(PVM pVM, uint32_t fFlags, const char *pszErrorId, 159 const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(4, 5); 160 VMMDECL(int) VMSetRuntimeErrorV(PVM pVM, uint32_t fFlags, const char *pszErrorId, 161 const char *pszFormat, va_list args) RT_IPRT_FORMAT_ATTR(4, 0); 160 162 161 163 /** @name VMSetRuntimeError fFlags … … 436 438 VMMR3DECL(int) VMR3AtErrorRegister(PUVM pUVM, PFNVMATERROR pfnAtError, void *pvUser); 437 439 VMMR3DECL(int) VMR3AtErrorDeregister(PUVM pUVM, PFNVMATERROR pfnAtError, void *pvUser); 438 VMMR3DECL(int) VMR3SetError(PUVM pUVM, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...) ;439 VMMR3DECL(int) VMR3SetErrorV(PUVM pUVM, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va) ;440 VMMR3DECL(int) VMR3SetError(PUVM pUVM, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(6, 7); 441 VMMR3DECL(int) VMR3SetErrorV(PUVM pUVM, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(6, 0); 440 442 VMMR3_INT_DECL(void) VMR3SetErrorWorker(PVM pVM); 441 443 VMMR3_INT_DECL(uint32_t) VMR3GetErrorCount(PUVM pUVM); -
trunk/src/VBox/Debugger/DBGCEval.cpp
r56986 r57006 1435 1435 case VERR_DBGC_PARSE_NO_MEMORY: 1436 1436 rc = DBGCCmdHlpPrintf(&pDbgc->CmdHlp, 1437 "Error: Out memory in the regular heap! Expect odd stuff to happen...\n" , cArgs);1437 "Error: Out memory in the regular heap! Expect odd stuff to happen...\n"); 1438 1438 break; 1439 1439 case VERR_DBGC_PARSE_INCORRECT_ARG_TYPE: -
trunk/src/VBox/Devices/Bus/DevPCI.cpp
r56292 r57006 2162 2162 return PDMDevHlpVMSetError(pDevIns, VERR_VERSION_MISMATCH, RT_SRC_POS, 2163 2163 N_("PCI helper version mismatch; got %#x expected %#x"), 2164 pBus->pPciHlpR3->u32Version !=PDM_PCIHLPR3_VERSION);2164 pBus->pPciHlpR3->u32Version, PDM_PCIHLPR3_VERSION); 2165 2165 2166 2166 pBus->pPciHlpRC = pBus->pPciHlpR3->pfnGetRCHelpers(pDevIns); -
trunk/src/VBox/Devices/Network/DevE1000.cpp
r56703 r57006 5990 5990 { 5991 5991 E1kLog(("%s e1kIOPortOut: invalid op size: uPort=%RTiop cb=%08x\n", pThis->szPrf, uPort, cb)); 5992 rc = PDMDevHlpDBGFStop(pDevIns, RT_SRC_POS, " invalid op size: uPort=%RTiop cb=%#x\n", pThis->szPrf, uPort, cb);5992 rc = PDMDevHlpDBGFStop(pDevIns, RT_SRC_POS, "%s: invalid op size: uPort=%RTiop cb=%#x\n", pThis->szPrf, uPort, cb); 5993 5993 } 5994 5994 -
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r56292 r57006 3948 3948 */ 3949 3949 pHlp->pfnPrintf(pHlp, 3950 "pcnet #%d: port=%RTiop mmio=%RX32 mac-cfg=%RTmac %s \n",3950 "pcnet #%d: port=%RTiop mmio=%RX32 mac-cfg=%RTmac %s%s%s\n", 3951 3951 pDevIns->iInstance, 3952 3952 pThis->IOPortBase, pThis->MMIOBase, &pThis->MacConfigured, 3953 pThis->fAm79C973 ? "Am79C973" : "Am79C970A", pThis->fGCEnabled ? " GC" : "", pThis->fR0Enabled ? " R0" : "");3953 pThis->fAm79C973 ? "Am79C973" : "Am79C970A", pThis->fGCEnabled ? " RC" : "", pThis->fR0Enabled ? " R0" : ""); 3954 3954 3955 3955 PDMCritSectEnter(&pThis->CritSect, VERR_INTERNAL_ERROR); /* Take it here so we know why we're hanging... */ … … 4118 4118 "BUFF=%d UFLO=%d EXDEF=%d LCOL=%d LCAR=%d RTRY=%d TDR=%03x TRC=%#x ONES=%#x\n" 4119 4119 , 4120 i, GCPhys, i + 1 == CSR_XMTRC(pThis) ? '*' : ' ', GCPhys == CSR_CXDA(pThis) ? '*' : ' ', 4121 tmd.tmd0.tbadr, 4096 - tmd.tmd1.bcnt, 4122 tmd.tmd2.tdr, 4123 tmd.tmd2.trc, 4120 i, 4121 GCPhys, 4122 i + 1 == CSR_XMTRC(pThis) ? '*' : ' ', 4123 GCPhys == CSR_CXDA(pThis) ? '*' : ' ', 4124 tmd.tmd0.tbadr, 4125 4096 - tmd.tmd1.bcnt, 4124 4126 tmd.tmd1.own, 4125 4127 tmd.tmd1.err, … … 5153 5155 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->aStatXmitChainCounts[i], STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_OCCURENCES, "", "/Devices/PCNet%d/XmitChainCounts/%d+", iInstance, i + 1); 5154 5156 5155 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatXmitSkipCurrent, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "", "/Devices/PCNet%d/Xmit/Skipped", iInstance , i + 1);5157 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatXmitSkipCurrent, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "", "/Devices/PCNet%d/Xmit/Skipped", iInstance); 5156 5158 5157 5159 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatInterrupt, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling interrupt checks", "/Devices/PCNet%d/UpdateIRQ", iInstance); -
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r56292 r57006 1498 1498 GET_STRING(rc, pThis, pCfg, "Network", szNetwork[0], sizeof(szNetwork)); 1499 1499 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 1500 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, N_("NAT%d: Configuration error: " 1501 "missing network"), 1502 pDrvIns->iInstance, szNetwork); 1500 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, N_("NAT%d: Configuration error: missing network"), 1501 pDrvIns->iInstance); 1503 1502 1504 1503 RTNETADDRIPV4 Network, Netmask; … … 1506 1505 rc = RTCidrStrToIPv4(szNetwork, &Network, &Netmask); 1507 1506 if (RT_FAILURE(rc)) 1508 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, N_("NAT#%d: Configuration error: "1509 "network '%s' describes not a valid IPv4 network"),1507 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, 1508 N_("NAT#%d: Configuration error: network '%s' describes not a valid IPv4 network"), 1510 1509 pDrvIns->iInstance, szNetwork); 1511 1510 -
trunk/src/VBox/Devices/Storage/DevAHCI.cpp
r56718 r57006 7503 7503 } 7504 7504 else if (pThis->ahciPort[i].fATAPI) 7505 return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Config mismatch: atapi - saved= %false config=true"));7505 return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Config mismatch: atapi - saved=false config=true")); 7506 7506 7507 7507 /* Check if we have tasks pending. */ -
trunk/src/VBox/Devices/Storage/DrvBlock.cpp
r56292 r57006 1030 1030 if (RT_FAILURE(rc)) 1031 1031 { 1032 PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, "%s", 1033 N_("Uuid from string failed on \"%s\""), psz); 1032 PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, N_("Uuid from string failed on \"%s\""), psz); 1034 1033 MMR3HeapFree(psz); 1035 1034 return rc; -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r56858 r57006 3659 3659 /* If we hotplug a USB device create a new CFGM tree. */ 3660 3660 if (!fHotplug) 3661 pCtlInst = CFGMR3GetChildF(CFGMR3GetRootU(pUVM), "USB/%s/", pcszDevice , uInstance);3661 pCtlInst = CFGMR3GetChildF(CFGMR3GetRootU(pUVM), "USB/%s/", pcszDevice); 3662 3662 else 3663 3663 pCtlInst = CFGMR3CreateTree(pUVM); -
trunk/src/VBox/VMM/VMMR0/GMMR0.cpp
r56985 r57006 1460 1460 { 1461 1461 SUPR0Printf("gmmR0CleanupVMScanChunk: Chunk %p/%#x has bogus stats - free=%d/%d private=%d/%d shared=%d/%d\n", 1462 pChunk ->cFree, cFree, pChunk->cPrivate, cPrivate, pChunk->cShared, cShared);1462 pChunk, pChunk->Core.Key, pChunk->cFree, cFree, pChunk->cPrivate, cPrivate, pChunk->cShared, cShared); 1463 1463 pChunk->cFree = cFree; 1464 1464 pChunk->cPrivate = cPrivate; -
trunk/src/VBox/VMM/VMMR3/CPUM.cpp
r56877 r57006 1895 1895 for (unsigned i = 0; i < RT_ELEMENTS(pFpuCtx->au32RsrvdRest); i++) 1896 1896 if (pFpuCtx->au32RsrvdRest[i]) 1897 pHlp->pfnPrintf(pHlp, "%sRsrvdRest[ i]=%RX32 (offset=%#x)\n",1897 pHlp->pfnPrintf(pHlp, "%sRsrvdRest[%u]=%RX32 (offset=%#x)\n", 1898 1898 pszPrefix, i, pFpuCtx->au32RsrvdRest[i], RT_OFFSETOF(X86FXSTATE, au32RsrvdRest[i]) ); 1899 1899 } -
trunk/src/VBox/VMM/VMMR3/PGMDbg.cpp
r56287 r57006 1043 1043 { 1044 1044 pState->pHlp->pfnPrintf(pState->pHlp, "%0*llx error! PT mapping %s at HCPhys=%RHp was not found in the page pool!\n", 1045 pState->cchAddress, pState->u64Address, HCPhys);1045 pState->cchAddress, pState->u64Address, pszDesc, HCPhys); 1046 1046 return VERR_INVALID_PARAMETER; 1047 1047 } … … 2354 2354 , 2355 2355 cch, "", cch, "", cch, "", cch, "", cch, "", cch, "", cch, "", 2356 cch, "", cch, "", cch, "", cch, "", cch, "", cch, " ", cch, "Address");2356 cch, "", cch, "", cch, "", cch, "", cch, "", cch, "Address"); 2357 2357 if (pState->fLme) 2358 2358 rc = pgmR3DumpHierarchyGstPaePML4(pState, cr3 & cr3Mask, cMaxDepth); -
trunk/src/VBox/VMM/VMMR3/VM.cpp
r55881 r57006 3452 3452 LogRel((" failed, because the VM state is actually %s\n", VMR3GetStateName(enmStateCur))); 3453 3453 VMSetError(pVM, VERR_VM_INVALID_VM_STATE, RT_SRC_POS, 3454 N_("%s failed because the current VM state, %s, was not found in the state transition table "),3454 N_("%s failed because the current VM state, %s, was not found in the state transition table (old state %s)"), 3455 3455 pszWho, VMR3GetStateName(enmStateCur), VMR3GetStateName(enmStateOld)); 3456 3456 AssertMsgFailed(("%s - state=%s, see release log for full details. Check the cTransitions passed us.\n",
Note:
See TracChangeset
for help on using the changeset viewer.