google / google/CFU-Playground

In our build, MicroPrintf() doesn't understand "%lu" and prints "lu" instead of the number.

Open
#715 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Verilog
Stars
565
Forks
160
PR merge metrics
No merged PRs in 30d

Description

In the following line from `third_party/tflite-micro/tensorflow/lite/micro/micro_profiler.cc`,
```
MicroPrintf("%d,%s,%" PRIu32, i, tags_[i], ticks);
```
`PRIu32` gets replaced by `lu`, so the format string becomes `"%d,%s,%lu"`, but in the display, the `%lu` is not replaced by the value of `ticks`. It just prints out "`lu`". If instead I directly edit the format string to use `%u`, then the value of `ticks` gets printed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.