Skip to content

Commit

Permalink
Patch for TFLM issue #1494.
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Callahan <tcal@google.com>
  • Loading branch information
tcal-x authored and cfu-playground-bot committed Jan 11, 2023
1 parent 659d343 commit 428fea8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void MicroProfiler::Log() const {
#if !defined(TF_LITE_STRIP_ERROR_STRINGS)
for (int i = 0; i < num_events_; ++i) {
uint32_t ticks = end_ticks_[i] - start_ticks_[i];
MicroPrintf("%s took %" PRIu32 " ticks (%d ms).", tags_[i], ticks,
MicroPrintf("%s took %u ticks (%d ms).", tags_[i], ticks,
TicksToMs(ticks));
}
#endif
Expand All @@ -63,7 +63,7 @@ void MicroProfiler::LogCsv() const {
MicroPrintf("\"Event\",\"Tag\",\"Ticks\"");
for (int i = 0; i < num_events_; ++i) {
uint32_t ticks = end_ticks_[i] - start_ticks_[i];
MicroPrintf("%d,%s,%" PRIu32, i, tags_[i], ticks);
MicroPrintf("%d,%s,%u", i, tags_[i], ticks);
}
#endif
}
Expand Down

0 comments on commit 428fea8

Please sign in to comment.