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
5454
5555 welsCodecTrace::welsCodecTrace() {
5656
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;
6161 }
6262
6363 welsCodecTrace::~welsCodecTrace() {
@@ -71,23 +71,23 @@ void welsCodecTrace::TraceString (int32_t iLevel, const char* str) { · 7 unmodified lines
7171 switch (iLevel) {
7272 case WELS_LOG_ERROR:
7373 if (m_fpErrorTrace)
74− m_fpErrorTrace ("%s", str);
74+ m_fpErrorTrace (str);
7575 break;
7676 case WELS_LOG_WARNING:
7777 if (m_fpWarnTrace)
78− m_fpWarnTrace ("%s", str);
78+ m_fpWarnTrace (str);
7979 break;
8080 case WELS_LOG_INFO:
8181 if (m_fpInfoTrace)
82− m_fpInfoTrace ("%s", str);
82+ m_fpInfoTrace (str);
8383 break;
8484 case WELS_LOG_DEBUG:
8585 if (m_fpDebugTrace)
86− m_fpDebugTrace ("%s", str);
86+ m_fpDebugTrace (str);
8787 break;
8888 default:
8989 if (m_fpDebugTrace)
90− m_fpInfoTrace ("%s", str);
90+ m_fpInfoTrace (str);
9191 break;
9292 }
9393 }

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