VirtualBox

Changeset 12161 in vbox


Ignore:
Timestamp:
Sep 5, 2008 11:25:33 PM (16 years ago)
Author:
vboxsync
Message:

VBoxDrv/win: Alternative SUPR0Printf implementation (disabled).

Location:
trunk/src/VBox/HostDrivers/Support/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp

    r12157 r12161  
    577577}
    578578
     579
     580#if 0 /* See alternative in SUPDrvA-win.asm */
     581/**
     582 * Alternative version of SUPR0Printf for Windows.
     583 *
     584 * @returns 0.
     585 * @param   pszFormat   The format string.
     586 */
     587SUPR0DECL(int) SUPR0Printf(const char *pszFormat, ...)
     588{
     589    va_list va;
     590    char    szMsg[512];
     591
     592    va_start(va, pszFormat);
     593    size_t cch = RTStrPrintfV(szMsg, sizeof(szMsg) - 1, pszFormat, va);
     594    szMsg[sizeof(szMsg) - 1] = '\0';
     595    va_end(va);
     596
     597    RTLogWriteDebugger(szMsg, cch);
     598    return 0;
     599}
     600#endif
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrvA-win.asm

    r12157 r12161  
    4040extern _DbgPrint
    4141
     42%if 1 ; see alternative in SUPDrv-win.cpp
    4243;;
    4344; Kind of alias for DbgPrint
     
    4546        jmp     _DbgPrint
    4647ENDPROC SUPR0Printf
     48%endif
    4749
    4850
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