History

Don't include a [ENCODER]: prefix in all logging

The same trace module is used for the decoder now as well.

Martin Storsjö committed 12 years ago

Commit cc65a1d1 parent 17fc6bd1 file · +1 −5Browse files

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

Unified · Split

codec/common/src/welsCodecTrace.cpp+1−5
@@ -100,11 +100,7 @@ void welsCodecTrace::CODEC_TRACE (void* ignore, const int32_t iLevel, const char · 99 unmodified lines
100100 }
101101
102102 char pBuf[MAX_LOG_SIZE] = {0};
103− const int32_t len = strlen ("[ENCODER]: "); // confirmed_safe_unsafe_usage
104−
105−
106− WelsStrncpy (pBuf, MAX_LOG_SIZE, "[ENCODER]: "); // confirmed_safe_unsafe_usage
107− WelsVsnprintf (pBuf + len, MAX_LOG_SIZE - len, Str_Format, vl); // confirmed_safe_unsafe_usage
103+ WelsVsnprintf (pBuf, MAX_LOG_SIZE, Str_Format, vl); // confirmed_safe_unsafe_usage
108104
109105 welsCodecTrace::TraceString (iLevel, pBuf);
110106 }

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