summaryrefslogtreecommitdiff
path: root/src/pal/src/misc/dbgmsg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pal/src/misc/dbgmsg.cpp')
-rw-r--r--src/pal/src/misc/dbgmsg.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/pal/src/misc/dbgmsg.cpp b/src/pal/src/misc/dbgmsg.cpp
index ff38b1bef0..4d345649b1 100644
--- a/src/pal/src/misc/dbgmsg.cpp
+++ b/src/pal/src/misc/dbgmsg.cpp
@@ -547,17 +547,14 @@ int DBG_printf_gcc(DBG_CHANNEL_ID channel, DBG_LEVEL_ID level, BOOL bHeader,
InternalLeaveCriticalSection(pthrCurrent, &fprintf_crit_section);
/* flush the output to file */
- /* Can call InternalFflush since InternalFflush does not have ENTRY/LOGEXIT
- macros. If that changes, then this will need to be switched back to calling the
- cruntime fflush with some other protection from suspension. */
- if (InternalFflush(pthrCurrent, output_file) != 0)
+ if ( fflush(output_file) != 0 )
{
fprintf(stderr, "ERROR : fflush() failed errno:%d (%s)\n",
errno, strerror(errno));
}
// Some systems support displaying a GUI dialog. We attempt this only for asserts.
- if (level == DLI_ASSERT)
+ if ( level == DLI_ASSERT )
PAL_DisplayDialog("PAL ASSERT", buffer);
if ( old_errno != errno )
@@ -657,11 +654,7 @@ int DBG_printf_c99(DBG_CHANNEL_ID channel, DBG_LEVEL_ID level, BOOL bHeader,
if(call_count>5)
{
call_count=0;
- /* Can call InternalFflush since InternalFflush does not have
- ENTRY/LOGEXIT macros. If that changes, then this will need
- to be switched back to calling the cruntime fflush with some
- other protection from suspension. */
- if (InternalFflush(pthrCurrent, output_file) != 0)
+ if ( fflush(output_file) != 0 )
{
fprintf(stderr, "ERROR : fflush() failed errno:%d (%s)\n",
errno, strerror(errno));