Skip to content

Commit d5f819d

Browse files
authored
Fix armclang build issue (#2155)
BUG=armclang has build issues with https://github.com/eyalroz/printf
1 parent aa61a91 commit d5f819d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tensorflow/lite/micro/cortex_m_generic/debug_log.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extern "C" {
2525
#include "tensorflow/lite/micro/cortex_m_generic/debug_log_callback.h"
2626

2727
#ifndef TF_LITE_STRIP_ERROR_STRINGS
28-
#include "eyalroz_printf/src/printf/printf.h"
28+
#include <stdio.h>
2929
#endif
3030

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

52-
vsnprintf_(log_buffer, kMaxLogLen, format, args);
52+
vsnprintf(log_buffer, kMaxLogLen, format, args);
5353
InvokeDebugLogCallback(log_buffer);
5454
#endif
5555
}

tensorflow/lite/micro/tools/make/targets/cortex_m_generic_makefile.inc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,5 +204,3 @@ ifneq ($(TARGET_ARCH), project_generation)
204204
$(TENSORFLOW_ROOT)tensorflow/lite/micro/examples/micro_speech/Makefile.inc
205205
MICRO_LITE_EXAMPLE_TESTS := $(filter-out $(EXCLUDED_EXAMPLE_TESTS), $(MICRO_LITE_EXAMPLE_TESTS))
206206
endif
207-
208-
include $(MAKEFILE_DIR)/ext_libs/eyalroz_printf.inc

0 commit comments

Comments
 (0)