From cc65a1d76cbc9eb0aca26ebfc5d0bc45ac0426fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 10 Jun 2014 09:51:15 +0300 Subject: [PATCH] Don't include a [ENCODER]: prefix in all logging The same trace module is used for the decoder now as well. --- codec/common/src/welsCodecTrace.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/codec/common/src/welsCodecTrace.cpp b/codec/common/src/welsCodecTrace.cpp index d75c6390..0e3db601 100644 --- a/codec/common/src/welsCodecTrace.cpp +++ b/codec/common/src/welsCodecTrace.cpp @@ -100,11 +100,7 @@ void welsCodecTrace::CODEC_TRACE (void* ignore, const int32_t iLevel, const char } char pBuf[MAX_LOG_SIZE] = {0}; - const int32_t len = strlen ("[ENCODER]: "); // confirmed_safe_unsafe_usage - - - WelsStrncpy (pBuf, MAX_LOG_SIZE, "[ENCODER]: "); // confirmed_safe_unsafe_usage - WelsVsnprintf (pBuf + len, MAX_LOG_SIZE - len, Str_Format, vl); // confirmed_safe_unsafe_usage + WelsVsnprintf (pBuf, MAX_LOG_SIZE, Str_Format, vl); // confirmed_safe_unsafe_usage welsCodecTrace::TraceString (iLevel, pBuf); }