From dc7f4debbc2f06b2940a0df8a3baa0c9fb336c39 Mon Sep 17 00:00:00 2001 From: Jorg Brown Date: Fri, 17 Jun 2022 21:11:17 -0700 Subject: [PATCH] More debugging information please --- src/google/protobuf/stubs/strutil.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/stubs/strutil.cc b/src/google/protobuf/stubs/strutil.cc index 95fb25434c660..767b6342c0f45 100644 --- a/src/google/protobuf/stubs/strutil.cc +++ b/src/google/protobuf/stubs/strutil.cc @@ -154,7 +154,7 @@ void StringReplace(StringPiece s, StringPiece oldsub, StringPiece newsub, StrAppend(res, newsub); start_pos = pos + oldsub.size(); // start searching again after the "old" } while (replace_all); - DONOTCHECKIN_GOOGLE_DCHECK_NO_OVERLAP(*res, s); + DONOTCHECKIN_GOOGLE_DCHECK_NO_OVERLAP(*res, s) << " res=" << *res << " s=" << s; StrAppend(res, s.substr(start_pos, s.length() - start_pos)); }