Index: webrtc/modules/audio_processing/agc/agc_manager_direct.cc |
diff --git a/webrtc/modules/audio_processing/agc/agc_manager_direct.cc b/webrtc/modules/audio_processing/agc/agc_manager_direct.cc |
index e4b753bc3d0a3a988b70e04b56454e7c9b119a0a..e56984a1b1029a0dd12d604457905353eb11824a 100644 |
--- a/webrtc/modules/audio_processing/agc/agc_manager_direct.cc |
+++ b/webrtc/modules/audio_processing/agc/agc_manager_direct.cc |
@@ -168,19 +168,19 @@ int AgcManagerDirect::Initialize() { |
// example, what happens when we change devices. |
if (gctrl_->set_mode(GainControl::kFixedDigital) != 0) { |
- LOG_FERR1(LS_ERROR, set_mode, GainControl::kFixedDigital); |
+ LOG(LS_ERROR) << "set_mode(GainControl::kFixedDigital) failed."; |
return -1; |
} |
if (gctrl_->set_target_level_dbfs(2) != 0) { |
- LOG_FERR1(LS_ERROR, set_target_level_dbfs, 2); |
+ LOG(LS_ERROR) << "set_target_level_dbfs(2) failed."; |
return -1; |
} |
if (gctrl_->set_compression_gain_db(kDefaultCompressionGain) != 0) { |
- LOG_FERR1(LS_ERROR, set_compression_gain_db, kDefaultCompressionGain); |
+ LOG(LS_ERROR) << "set_compression_gain_db(kDefaultCompressionGain) failed."; |
return -1; |
} |
if (gctrl_->enable_limiter(true) != 0) { |
- LOG_FERR1(LS_ERROR, enable_limiter, true); |
+ LOG(LS_ERROR) << "enable_limiter(true) failed."; |
return -1; |
} |
return 0; |
@@ -244,7 +244,7 @@ void AgcManagerDirect::Process(const int16_t* audio, |
} |
if (agc_->Process(audio, length, sample_rate_hz) != 0) { |
- LOG_FERR0(LS_ERROR, Agc::Process); |
+ LOG(LS_ERROR) << "Agc::Process failed"; |
assert(false); |
} |
@@ -434,7 +434,8 @@ void AgcManagerDirect::UpdateCompressor() { |
compression_ = new_compression; |
compression_accumulator_ = new_compression; |
if (gctrl_->set_compression_gain_db(compression_) != 0) { |
- LOG_FERR1(LS_ERROR, set_compression_gain_db, compression_); |
+ LOG(LS_ERROR) << "set_compression_gain_db(" << compression_ |
+ << ") failed."; |
} |
} |
} |