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}
diff --git a/media/engine/simulcast.cc b/media/engine/simulcast.cc
index f2b3c3a..c2ac2d5 100644
--- a/media/engine/simulcast.cc
+++ b/media/engine/simulcast.cc
@@ -149,14 +149,14 @@
bool SlotSimulcastMaxResolution(size_t max_layers, int* width, int* height) {
int index = FindSimulcastFormatIndex(*width, *height, max_layers);
if (index == -1) {
- LOG(LS_ERROR) << "SlotSimulcastMaxResolution";
+ RTC_LOG(LS_ERROR) << "SlotSimulcastMaxResolution";
return false;
}
*width = kSimulcastFormats[index].width;
*height = kSimulcastFormats[index].height;
- LOG(LS_INFO) << "SlotSimulcastMaxResolution to width:" << *width
- << " height:" << *height;
+ RTC_LOG(LS_INFO) << "SlotSimulcastMaxResolution to width:" << *width
+ << " height:" << *height;
return true;
}
@@ -300,8 +300,9 @@
ScreenshareLayerConfig config(kScreenshareDefaultTl0BitrateKbps,
kScreenshareDefaultTl1BitrateKbps);
if (!group.empty() && !FromFieldTrialGroup(group, &config)) {
- LOG(LS_WARNING) << "Unable to parse WebRTC-ScreenshareLayerRates"
- " field trial group: '" << group << "'.";
+ RTC_LOG(LS_WARNING) << "Unable to parse WebRTC-ScreenshareLayerRates"
+ " field trial group: '"
+ << group << "'.";
}
return config;
}