Changeset 41558 in vbox for trunk/src/VBox/Debugger/DBGCCmdHlp.cpp
- Timestamp:
- Jun 3, 2012 10:46:46 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 78326
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/DBGCCmdHlp.cpp
r41553 r41558 51 51 return rc; 52 52 } 53 53 54 54 55 /** … … 211 212 212 213 return pDbgc->rcOutput; 214 } 215 216 217 /** 218 * @interface_method_impl{DBGCCMDHLP,pfnStrPrintf} 219 */ 220 static DECLCALLBACK(size_t) dbgcHlpStrPrintfV(PDBGCCMDHLP pCmdHlp, char *pszBuf, size_t cbBuf, 221 const char *pszFormat, va_list va) 222 { 223 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp); 224 return RTStrPrintfExV(dbgcStringFormatter, pDbgc, pszBuf, cbBuf, pszFormat, va); 225 } 226 227 228 /** 229 * @interface_method_impl{DBGCCMDHLP,pfnStrPrintf} 230 */ 231 static DECLCALLBACK(size_t) dbgcHlpStrPrintf(PDBGCCMDHLP pCmdHlp, char *pszBuf, size_t cbBuf, const char *pszFormat, ...) 232 { 233 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp); 234 va_list va; 235 va_start(va, pszFormat); 236 size_t cch = RTStrPrintfExV(dbgcStringFormatter, pDbgc, pszBuf, cbBuf, pszFormat, va); 237 va_end(va); 238 return cch; 213 239 } 214 240 … … 1255 1281 pDbgc->CmdHlp.pfnPrintfV = dbgcHlpPrintfV; 1256 1282 pDbgc->CmdHlp.pfnPrintf = dbgcHlpPrintf; 1283 pDbgc->CmdHlp.pfnStrPrintf = dbgcHlpStrPrintf; 1284 pDbgc->CmdHlp.pfnStrPrintfV = dbgcHlpStrPrintfV; 1257 1285 pDbgc->CmdHlp.pfnVBoxErrorV = dbgcHlpVBoxErrorV; 1258 1286 pDbgc->CmdHlp.pfnVBoxError = dbgcHlpVBoxError;
Note:
See TracChangeset
for help on using the changeset viewer.