The format string was always "%s" anyway.
Showing the changes to codec/common/src/welsCodecTrace.cpp (1 of 4 files). Show all
Unified · Split
| @@ -54,10 +54,10 @@ CM_WELS_TRACE welsCodecTrace::m_fpErrorTrace = NULL; · 53 unmodified lines | ||
| 54 | 54 | |
| 55 | 55 | welsCodecTrace::welsCodecTrace() { |
| 56 | 56 | |
| 57 | − m_fpDebugTrace = welsStderrTrace<WELS_LOG_DEBUG>; | |
| 58 | − m_fpInfoTrace = welsStderrTrace<WELS_LOG_INFO>; | |
| 59 | − m_fpWarnTrace = welsStderrTrace<WELS_LOG_WARNING>; | |
| 60 | − m_fpErrorTrace = welsStderrTrace<WELS_LOG_ERROR>; | |
| 57 | + m_fpDebugTrace = welsStderrTrace; | |
| 58 | + m_fpInfoTrace = welsStderrTrace; | |
| 59 | + m_fpWarnTrace = welsStderrTrace; | |
| 60 | + m_fpErrorTrace = welsStderrTrace; | |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | welsCodecTrace::~welsCodecTrace() { |
| @@ -71,23 +71,23 @@ void welsCodecTrace::TraceString (int32_t iLevel, const char* str) { · 7 unmodified lines | ||
| 71 | 71 | switch (iLevel) { |
| 72 | 72 | case WELS_LOG_ERROR: |
| 73 | 73 | if (m_fpErrorTrace) |
| 74 | − m_fpErrorTrace ("%s", str); | |
| 74 | + m_fpErrorTrace (str); | |
| 75 | 75 | break; |
| 76 | 76 | case WELS_LOG_WARNING: |
| 77 | 77 | if (m_fpWarnTrace) |
| 78 | − m_fpWarnTrace ("%s", str); | |
| 78 | + m_fpWarnTrace (str); | |
| 79 | 79 | break; |
| 80 | 80 | case WELS_LOG_INFO: |
| 81 | 81 | if (m_fpInfoTrace) |
| 82 | − m_fpInfoTrace ("%s", str); | |
| 82 | + m_fpInfoTrace (str); | |
| 83 | 83 | break; |
| 84 | 84 | case WELS_LOG_DEBUG: |
| 85 | 85 | if (m_fpDebugTrace) |
| 86 | − m_fpDebugTrace ("%s", str); | |
| 86 | + m_fpDebugTrace (str); | |
| 87 | 87 | break; |
| 88 | 88 | default: |
| 89 | 89 | if (m_fpDebugTrace) |
| 90 | − m_fpInfoTrace ("%s", str); | |
| 90 | + m_fpInfoTrace (str); | |
| 91 | 91 | break; |
| 92 | 92 | } |
| 93 | 93 | } |