VirtualBox

Changeset 95812 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 25, 2022 1:22:06 PM (2 years ago)
Author:
vboxsync
Message:

IPRT/log.cpp: Use RTLogWriteStdErr instead of fprintf/stderr in IPRT_NO_CRT mode. bugref:10261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/log/log.cpp

    r94628 r95812  
    5858#ifdef IN_RING3
    5959# include <iprt/alloca.h>
    60 # include <stdio.h>
     60# ifndef IPRT_NO_CRT
     61#  include <stdio.h>
     62# endif
    6163#endif
    6264
     
    36123614            else
    36133615            {
     3616# ifndef IPRT_NO_CRT
    36143617                fprintf(stderr, "pBufDesc->offBuf >= pBufDesc->cbBuf (%#x >= %#x)\n", pBufDesc->offBuf, pBufDesc->cbBuf);
     3618# else
     3619                RTLogWriteStdErr(RT_STR_TUPLE("pBufDesc->offBuf >= pBufDesc->cbBuf\n"));
     3620# endif
    36153621                AssertBreakpoint(); AssertBreakpoint();
    36163622            }
     
    37233729            else
    37243730            {
     3731# ifndef IPRT_NO_CRT
    37253732                fprintf(stderr, "offBuf >= cbBuf (%#x >= %#x)\n", offBuf, cbBuf);
     3733# else
     3734                RTLogWriteStdErr(RT_STR_TUPLE("offBuf >= cbBuf\n"));
     3735# endif
    37263736                AssertBreakpoint(); AssertBreakpoint();
    37273737            }
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