From 551e9848518fff9e76dd57ab236a4730b27439ac Mon Sep 17 00:00:00 2001 From: kwiberg Date: Thu, 9 Mar 2017 02:08:28 -0800 Subject: [PATCH] Make error reporting more detailed In an attempt to help Kenny locate the evil Dr. Deo. BUG=webrtc:7307 Review-Url: https://codereview.webrtc.org/2732193006 Cr-Commit-Position: refs/heads/master@{#17135} --- webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc b/webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc index c61449a3ef..528f0fad91 100644 --- a/webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc +++ b/webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc @@ -755,7 +755,11 @@ int main(int argc, char* argv[]) /* Error check */ if (err < 0 || declen < 0 || FL != static_cast(declen)) { errtype=WebRtcIsacfix_GetErrorCode(ISAC_main_inst); - printf("\nError in decode_B/or getFrameLen: %d.\n", errtype); + printf( + "\nError %d in ReadFrameLen (%s), Decode (%s), with FL %zu and " + "declen %d.\n", + errtype, err < 0 ? "yes" : "no", declen < 0 ? "yes" : "no", FL, + declen); } prevFrameSize = static_cast(declen/480);