Skip to content

Commit

Permalink
Fix armclang build issue (#2155)
Browse files Browse the repository at this point in the history
BUG=armclang has build issues with https://github.com/eyalroz/printf
  • Loading branch information
mansnils authored Aug 9, 2023
1 parent aa61a91 commit d5f819d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tensorflow/lite/micro/cortex_m_generic/debug_log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" {
#include "tensorflow/lite/micro/cortex_m_generic/debug_log_callback.h"

#ifndef TF_LITE_STRIP_ERROR_STRINGS
#include "eyalroz_printf/src/printf/printf.h"
#include <stdio.h>
#endif

static DebugLogCallback debug_log_callback = nullptr;
Expand All @@ -49,7 +49,7 @@ void DebugLog(const char* format, va_list args) {
constexpr int kMaxLogLen = 256;
char log_buffer[kMaxLogLen];

vsnprintf_(log_buffer, kMaxLogLen, format, args);
vsnprintf(log_buffer, kMaxLogLen, format, args);
InvokeDebugLogCallback(log_buffer);
#endif
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,5 +204,3 @@ ifneq ($(TARGET_ARCH), project_generation)
$(TENSORFLOW_ROOT)tensorflow/lite/micro/examples/micro_speech/Makefile.inc
MICRO_LITE_EXAMPLE_TESTS := $(filter-out $(EXCLUDED_EXAMPLE_TESTS), $(MICRO_LITE_EXAMPLE_TESTS))
endif

include $(MAKEFILE_DIR)/ext_libs/eyalroz_printf.inc

0 comments on commit d5f819d

Please sign in to comment.