TensorFlow Lite for Microcontrollers logging
PiperOrigin-RevId: 252511918
This commit is contained in:
parent
9912d064b1
commit
3d294ed7c2
@ -25,7 +25,7 @@ void DebugLogPrintf(const char* format, va_list args) {
|
|||||||
while (*current != 0) {
|
while (*current != 0) {
|
||||||
if (*current == '%') {
|
if (*current == '%') {
|
||||||
const char next = *(current + 1);
|
const char next = *(current + 1);
|
||||||
if ((next == 'd') || (next == 's')) {
|
if ((next == 'd') || (next == 's') || (next == 'f')) {
|
||||||
current += 1;
|
current += 1;
|
||||||
if (output_cache_index > 0) {
|
if (output_cache_index > 0) {
|
||||||
output_cache[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));
|
DebugLogInt32(va_arg(args, int));
|
||||||
} else if (next == 's') {
|
} else if (next == 's') {
|
||||||
DebugLog(va_arg(args, char*));
|
DebugLog(va_arg(args, char*));
|
||||||
|
} else if (next == 'f') {
|
||||||
|
DebugLogFloat(va_arg(args, double));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user