Skip to content

Commit

Permalink
More debugging information please
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgbrown committed Jun 18, 2022
1 parent 126841e commit dc7f4de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/stubs/strutil.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit dc7f4de

Please sign in to comment.