message: Extra ifdefs to be more confident that we do not have unnecessary bloat.
diff: @@ -15,21 +15,23 @@ limitations under the License.
  #include "tensorflow/lite/micro/micro_error_reporter.h"
  +#ifndef TF_LITE_STRIP_ERROR_STRINGS
  #include "tensorflow/lite/micro/micro_string.h"
  +#endif
  namespace tflite {
  -namespace {
  -
  -constexpr int kMaxLogLen = 256;
  -
  -} // namespace
  -
  int MicroErrorReporter::Report(const char* format, va_list args) {
  +#ifndef TF_LITE_STRIP_ERROR_STRINGS
  + // Only pulling in the implementation of this function for builds where we
  + // expect to make use of it to be extra cautious about not increasing the code
  + // size.
  + static constexpr int kMaxLogLen = 256;
  char log_buffer[kMaxLogLen];
  MicroVsnprintf(log_buffer, kMaxLogLen, format, args);
  DebugLog(log_buffer);
  DebugLog("\r\n");
  +#endif
  return 0;
  }
  