Skip to content

Commit

Permalink
Adjust format string in ESP examples
Browse files Browse the repository at this point in the history
Previously, we used the wrong format strings for displaying
the amount of clock cycles and nanoseconds.
  • Loading branch information
sirkrypt0 committed Aug 31, 2022
1 parent 9b0c320 commit 07247ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/esp32/main/esp32-libmicrofido2.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int app_main(void) {
clock_start_counting();
const int ret = stateless_assert(&dev, "example.com", updater_public_key);
uint64_t elapsed_cycles = clock_stop_counting();
printf("Elapsed cycles for stateless assertion: %zu\n", elapsed_cycles);
printf("Elapsed nanoseconds for stateless assertion: %zu\n", clock_cyles_to_ns(elapsed_cycles));
printf("Elapsed cycles for stateless assertion: %llu\n", elapsed_cycles);
printf("Elapsed nanoseconds for stateless assertion: %lu\n", clock_cyles_to_ns(elapsed_cycles));
return ret;
}

0 comments on commit 07247ff

Please sign in to comment.