From 36947bb635ccc92209497c80494c21c86c25977c Mon Sep 17 00:00:00 2001 From: "andresp@webrtc.org" Date: Mon, 7 Apr 2014 08:45:16 +0000 Subject: [PATCH] Fix logging calls in bitrate_controller module. BUG=3153 R=stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/11069005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5851 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../send_side_bandwidth_estimation.cc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.cc b/webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.cc index 036e04fc64..5da23f0662 100644 --- a/webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.cc +++ b/webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.cc @@ -12,7 +12,7 @@ #include -#include "webrtc/system_wrappers/interface/trace.h" +#include "webrtc/system_wrappers/interface/logging.h" namespace webrtc { namespace { @@ -203,13 +203,9 @@ void SendSideBandwidthEstimation::CapBitrateToThresholds() { bitrate_ = max_bitrate_configured_; } if (bitrate_ < min_bitrate_configured_) { - WEBRTC_TRACE(kTraceWarning, - kTraceRtpRtcp, - -1, - "The configured min bitrate (%u kbps) is greater than the " - "estimated available bandwidth (%u kbps).\n", - min_bitrate_configured_ / 1000, - bitrate_ / 1000); + LOG(LS_WARNING) << "Estimated available bandwidth " << bitrate_ / 1000 + << " kbps is below configured min bitrate " + << min_bitrate_configured_ / 1000 << " kbps."; bitrate_ = min_bitrate_configured_; } }