From 07247ff8fc33363a495fe2f7f73eedaa9b90d6be Mon Sep 17 00:00:00 2001 From: Tobias Kantusch Date: Wed, 31 Aug 2022 08:36:46 +0200 Subject: [PATCH] Adjust format string in ESP examples Previously, we used the wrong format strings for displaying the amount of clock cycles and nanoseconds. --- examples/esp32/main/esp32-libmicrofido2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/esp32/main/esp32-libmicrofido2.c b/examples/esp32/main/esp32-libmicrofido2.c index 1044c4a..a3b5af8 100644 --- a/examples/esp32/main/esp32-libmicrofido2.c +++ b/examples/esp32/main/esp32-libmicrofido2.c @@ -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; }