Cleanup log formatting in modules/audio_processing

Bug: None
Change-Id: I47177530d8a85d7b2f143081de71f5a3bf8ec354
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/166041
Commit-Queue: Jonas Olsson <jonasolsson@webrtc.org>
Reviewed-by: Alessio Bazzica <alessiob@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30379}
This commit is contained in:
Jonas Olsson
2020-01-14 15:54:35 +01:00
committed by Commit Bot
parent 9c0a83ea4d
commit 6c9bc396e9
2 changed files with 11 additions and 28 deletions

View File

@ -2160,36 +2160,24 @@ std::string ProduceDebugText(int render_input_sample_rate_hz,
size_t capture_output_num_channels) {
rtc::StringBuilder ss;
ss << "Sample rates:"
"\n"
" Render input: "
"\n Render input: "
<< render_input_sample_rate_hz
<< " Hz"
"\n"
" Render output: "
"\n Render output: "
<< render_output_sample_rate_hz
<< " Hz"
"\n"
" Capture input: "
"\n Capture input: "
<< capture_input_sample_rate_hz
<< " Hz"
"\n"
" Capture output: "
"\n Capture output: "
<< capture_output_sample_rate_hz
<< " Hz"
"\n"
"Number of channels:"
"\n"
" Render input: "
"\nNumber of channels:"
"\n Render input: "
<< render_input_num_channels
<< "\n"
" Render output: "
<< render_output_num_channels
<< "\n"
" Capture input: "
<< capture_input_num_channels
<< "\n"
" Capture output: "
<< capture_output_num_channels;
<< "\n Render output: " << render_output_num_channels
<< "\n Capture input: " << capture_input_num_channels
<< "\n Capture output: " << capture_output_num_channels;
return ss.Release();
}