From f5085b2f39c91ed0103c79d95f8d18a4ef2a6371 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 19 Aug 2009 17:02:29 -0500 Subject: [8388] Replaced UTF8PRINT macro by a function Should also fix possible color leak on Windows CLI. Signed-off-by: freghar --HG-- branch : trunk --- src/shared/Log.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/shared/Log.cpp') diff --git a/src/shared/Log.cpp b/src/shared/Log.cpp index 8de6e635dec..32483486628 100644 --- a/src/shared/Log.cpp +++ b/src/shared/Log.cpp @@ -388,7 +388,7 @@ void Log::outString( const char * str, ... ) if(m_colored) SetColor(true,m_colors[LOGL_NORMAL]); - UTF8PRINTF(stdout,str,); + utf8printf(stdout, str); if(m_colored) ResetColor(true); @@ -438,7 +438,7 @@ void Log::outCrash( const char * err, ... ) if(m_colored) SetColor(false,RED); - UTF8PRINTF(stderr,err,); + utf8printf(stdout, err); if(m_colored) ResetColor(false); @@ -478,7 +478,7 @@ void Log::outError( const char * err, ... ) if(m_colored) SetColor(false,RED); - UTF8PRINTF(stderr,err,); + utf8printf(stderr, err); if(m_colored) ResetColor(false); @@ -526,7 +526,7 @@ void Log::outErrorDb( const char * err, ... ) if(m_colored) SetColor(false,RED); - UTF8PRINTF(stderr,err,); + utf8printf(stderr, err); if(m_colored) ResetColor(false); @@ -581,7 +581,7 @@ void Log::outBasic( const char * str, ... ) if(m_colored) SetColor(true,m_colors[LOGL_BASIC]); - UTF8PRINTF(stdout,str,); + utf8printf(stdout, str); if(m_colored) ResetColor(true); @@ -622,7 +622,7 @@ void Log::outDetail( const char * str, ... ) if(m_colored) SetColor(true,m_colors[LOGL_DETAIL]); - UTF8PRINTF(stdout,str,); + utf8printf(stdout, str); if(m_colored) ResetColor(true); @@ -650,7 +650,7 @@ void Log::outDebugInLine( const char * str, ... ) if( m_logLevel > LOGL_DETAIL ) { - UTF8PRINTF(stdout,str,); + utf8printf(stdout, str); } if(logfile && m_logFileLevel > LOGL_DETAIL) { @@ -681,7 +681,7 @@ void Log::outDebug( const char * str, ... ) if(m_colored) SetColor(true,m_colors[LOGL_DEBUG]); - UTF8PRINTF(stdout,str,); + utf8printf(stdout, str); if(m_colored) ResetColor(true); @@ -707,7 +707,7 @@ void Log::outStringInLine( const char * str, ... ) if( !str ) return; - UTF8PRINTF(stdout,str,); + utf8printf(stdout, str); if(logfile) { @@ -739,7 +739,7 @@ void Log::outCommand( uint32 account, const char * str, ... ) if(m_colored) SetColor(true,m_colors[LOGL_BASIC]); - UTF8PRINTF(stdout,str,); + utf8printf(stdout, str); if(m_colored) ResetColor(true); -- cgit v1.2.3