VirtualBox

Changeset 61679 in vbox


Ignore:
Timestamp:
Jun 13, 2016 3:01:00 PM (9 years ago)
Author:
vboxsync
Message:

dbg.h: New wrapper which also returns the amount of written characters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/dbg.h

    r58111 r61679  
    709709}
    710710
     711/**
     712 * Command helper for writing formatted text to the debug console.
     713 *
     714 * @returns VBox status.
     715 * @param   pCmdHlp     Pointer to the command callback structure.
     716 * @param   pcbWritten  Where to store the amount of written characters on success.
     717 * @param   pszFormat   The format string.  This may use all IPRT extensions as
     718 *                      well as the debugger ones.
     719 * @param   ...         Arguments specified in the format string.
     720 */
     721DECLINLINE(int) RT_IPRT_FORMAT_ATTR(2, 3) DBGCCmdHlpPrintfEx(PDBGCCMDHLP pCmdHlp, size_t *pcbWritten,
     722                                                             const char *pszFormat, ...)
     723{
     724    va_list va;
     725    int     rc;
     726
     727    va_start(va, pszFormat);
     728    rc = pCmdHlp->pfnPrintfV(pCmdHlp, pcbWritten, pszFormat, va);
     729    va_end(va);
     730
     731    return rc;
     732}
    711733
    712734/**
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette