BUG=1003 Review URL: https://webrtc-codereview.appspot.com/941004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3003 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
bc48b8c803
commit
e341fd6073
@ -467,14 +467,14 @@ void TraceImpl::AddMessageToList(
|
||||
_length[_activeQueue][idx] = length;
|
||||
memcpy(_messageQueue[_activeQueue][idx], traceMessage, length);
|
||||
|
||||
if(_nextFreeIdx[_activeQueue] == WEBRTC_TRACE_MAX_QUEUE-1)
|
||||
if(_nextFreeIdx[_activeQueue] == WEBRTC_TRACE_MAX_QUEUE - 1)
|
||||
{
|
||||
// Logging more messages than can be worked off. Log a warning.
|
||||
const char warning_msg[] = "WARNING MISSING TRACE MESSAGES\n";
|
||||
_level[_activeQueue][_nextFreeIdx[_activeQueue]] = kTraceWarning;
|
||||
_length[_activeQueue][_nextFreeIdx[_activeQueue]] = strlen(warning_msg);
|
||||
memcpy(_messageQueue[_activeQueue][_nextFreeIdx[_activeQueue]],
|
||||
warning_msg, _length[_activeQueue][idx]);
|
||||
warning_msg, strlen(warning_msg));
|
||||
_nextFreeIdx[_activeQueue]++;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user