Minimal fixes to remove build warnings.
Review URL: http://webrtc-codereview.appspot.com/113004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@376 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
0134facd53
commit
064a8dfaa2
src/system_wrappers/source
@ -832,7 +832,8 @@ bool TraceImpl::UpdateFileName(
|
|||||||
}
|
}
|
||||||
|
|
||||||
memcpy(fileNameWithCounterUTF8, fileNameUTF8, lengthTo_);
|
memcpy(fileNameWithCounterUTF8, fileNameUTF8, lengthTo_);
|
||||||
sprintf(fileNameWithCounterUTF8+lengthTo_, "_%lu%s", newCount,
|
sprintf(fileNameWithCounterUTF8+lengthTo_, "_%lu%s",
|
||||||
|
static_cast<long unsigned int> (newCount),
|
||||||
fileNameUTF8+lengthWithoutFileEnding);
|
fileNameUTF8+lengthWithoutFileEnding);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -865,7 +866,8 @@ bool TraceImpl::CreateFileName(
|
|||||||
}
|
}
|
||||||
memcpy(fileNameWithCounterUTF8, fileNameUTF8, lengthWithoutFileEnding);
|
memcpy(fileNameWithCounterUTF8, fileNameUTF8, lengthWithoutFileEnding);
|
||||||
sprintf(fileNameWithCounterUTF8+lengthWithoutFileEnding, "_%lu%s",
|
sprintf(fileNameWithCounterUTF8+lengthWithoutFileEnding, "_%lu%s",
|
||||||
newCount, fileNameUTF8+lengthWithoutFileEnding);
|
static_cast<long unsigned int> (newCount),
|
||||||
|
fileNameUTF8+lengthWithoutFileEnding);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +51,8 @@ TracePosix::~TracePosix()
|
|||||||
WebRtc_Word32 TracePosix::AddThreadId(char* traceMessage) const
|
WebRtc_Word32 TracePosix::AddThreadId(char* traceMessage) const
|
||||||
{
|
{
|
||||||
WebRtc_UWord64 threadId = (WebRtc_UWord64)pthread_self();
|
WebRtc_UWord64 threadId = (WebRtc_UWord64)pthread_self();
|
||||||
sprintf(traceMessage, "%10llu; ", threadId);
|
sprintf(traceMessage, "%10llu; ",
|
||||||
|
static_cast<long long unsigned int>(threadId));
|
||||||
// 12 bytes are written.
|
// 12 bytes are written.
|
||||||
return 12;
|
return 12;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user