Stop using LOG macros in favor of RTC_ prefixed macros.
This CL has been generated with the following script: for m in PLOG \ LOG_TAG \ LOG_GLEM \ LOG_GLE_EX \ LOG_GLE \ LAST_SYSTEM_ERROR \ LOG_ERRNO_EX \ LOG_ERRNO \ LOG_ERR_EX \ LOG_ERR \ LOG_V \ LOG_F \ LOG_T_F \ LOG_E \ LOG_T \ LOG_CHECK_LEVEL_V \ LOG_CHECK_LEVEL \ LOG do git grep -l $m | xargs sed -i "s,\b$m\b,RTC_$m,g" done git checkout rtc_base/logging.h git cl format Bug: webrtc:8452 Change-Id: I1a53ef3e0a5ef6e244e62b2e012b864914784600 Reviewed-on: https://webrtc-review.googlesource.com/21325 Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20617}
This commit is contained in:
committed by
Commit Bot
parent
34fa309129
commit
675513b96a
@ -42,7 +42,7 @@ bool Bye::Parse(const CommonHeader& packet) {
|
||||
const uint8_t src_count = packet.count();
|
||||
// Validate packet.
|
||||
if (packet.payload_size_bytes() < 4u * src_count) {
|
||||
LOG(LS_WARNING)
|
||||
RTC_LOG(LS_WARNING)
|
||||
<< "Packet is too small to contain CSRCs it promise to have.";
|
||||
return false;
|
||||
}
|
||||
@ -52,7 +52,7 @@ bool Bye::Parse(const CommonHeader& packet) {
|
||||
if (has_reason) {
|
||||
reason_length = payload[4u * src_count];
|
||||
if (packet.payload_size_bytes() - 4u * src_count < 1u + reason_length) {
|
||||
LOG(LS_WARNING) << "Invalid reason length: " << reason_length;
|
||||
RTC_LOG(LS_WARNING) << "Invalid reason length: " << reason_length;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -115,7 +115,7 @@ bool Bye::Create(uint8_t* packet,
|
||||
|
||||
bool Bye::SetCsrcs(std::vector<uint32_t> csrcs) {
|
||||
if (csrcs.size() > kMaxNumberOfCsrcs) {
|
||||
LOG(LS_WARNING) << "Too many CSRCs for Bye packet.";
|
||||
RTC_LOG(LS_WARNING) << "Too many CSRCs for Bye packet.";
|
||||
return false;
|
||||
}
|
||||
csrcs_ = std::move(csrcs);
|
||||
|
||||
Reference in New Issue
Block a user