History

Change CM_WELS_TRACE to take a plain string, not a format and variadic arguments

The format string was always "%s" anyway.

Martin Storsjö committed 12 years ago

Commit 20e889f1 parent 5e22d534 files · +13 −22Browse files

Showing the changes to codec/common/src/welsCodecTrace.cpp (1 of 4 files). Show all

Unified · Split

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t