From 9373f656aa2758c12a98da79d89895a48ca0991f Mon Sep 17 00:00:00 2001 From: Jochen Kiemes Date: Sun, 18 Aug 2024 16:01:56 +0200 Subject: [PATCH] use PRIu64 in printf for uint64_t --- extras/tests/pc_based/test_07.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extras/tests/pc_based/test_07.cpp b/extras/tests/pc_based/test_07.cpp index 289f661..80ab644 100644 --- a/extras/tests/pc_based/test_07.cpp +++ b/extras/tests/pc_based/test_07.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include "FastAccelStepper.h" #include "StepperISR.h" @@ -104,7 +105,7 @@ class FastAccelStepperTest { printf("Time coasting = %d\n", rc.time_coasting); test(rc.time_coasting < 46000000, "too much coasting"); - printf("mid point @ %llu => total = %llu, total ticks = %llu\n", + printf("mid point @ %" PRIu64 " => total = %" PRIu64 ", total ticks = %" PRIu64 "\n", mid_point_ticks, 2 * mid_point_ticks, rc.total_ticks); #define ALLOWED_ASYMMETRY 1000000L printf("%ld\n", ALLOWED_ASYMMETRY);