From 3d294ed7c22e2f8917028f783f4a240a0685d6fc Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Mon, 10 Jun 2019 16:40:09 -0700 Subject: [PATCH] TensorFlow Lite for Microcontrollers logging PiperOrigin-RevId: 252511918 --- tensorflow/lite/experimental/micro/micro_error_reporter.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tensorflow/lite/experimental/micro/micro_error_reporter.cc b/tensorflow/lite/experimental/micro/micro_error_reporter.cc index 6bfe541f806..07f4af6ad6f 100644 --- a/tensorflow/lite/experimental/micro/micro_error_reporter.cc +++ b/tensorflow/lite/experimental/micro/micro_error_reporter.cc @@ -25,7 +25,7 @@ void DebugLogPrintf(const char* format, va_list args) { while (*current != 0) { if (*current == '%') { const char next = *(current + 1); - if ((next == 'd') || (next == 's')) { + if ((next == 'd') || (next == 's') || (next == 'f')) { current += 1; if (output_cache_index > 0) { output_cache[output_cache_index] = 0; @@ -36,6 +36,8 @@ void DebugLogPrintf(const char* format, va_list args) { DebugLogInt32(va_arg(args, int)); } else if (next == 's') { DebugLog(va_arg(args, char*)); + } else if (next == 'f') { + DebugLogFloat(va_arg(args, double)); } } } else {