We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52be27d commit f1310c0Copy full SHA for f1310c0
cores/esp8266/WString.cpp
@@ -182,7 +182,7 @@ bool String::changeBuffer(unsigned int maxStrLen) {
182
#ifdef DEBUG_ESP_OOM
183
if (!isSSO() && capacity() >= OOM_STRING_THRESHOLD_REALLOC_WARN && maxStrLen > capacity()) {
184
// warn when badly re-allocating
185
- DEBUGV("[offending String op %d->%d ('%." STR(OOM_STRING_BORDER_DISPLAY) "s ... %." STR(OOM_STRING_BORDER_DISPLAY) "s')]\n",
+ DEBUGV("[String] Reallocating large String(%d -> %d bytes) '%." STR(OOM_STRING_BORDER_DISPLAY) "s ... %." STR(OOM_STRING_BORDER_DISPLAY) "s'\n",
186
len(), maxStrLen, c_str(),
187
len() > OOM_STRING_BORDER_DISPLAY? c_str() + std::max((int)len() - OOM_STRING_BORDER_DISPLAY, OOM_STRING_BORDER_DISPLAY): "");
188
}
0 commit comments