Skip to content

Commit

Permalink
use PRIu64 in printf for uint64_t
Browse files Browse the repository at this point in the history
  • Loading branch information
gin66 committed Aug 18, 2024
1 parent 66ee5ac commit 9373f65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extras/tests/pc_based/test_07.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <cinttypes>

#include "FastAccelStepper.h"
#include "StepperISR.h"
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9373f65

Please sign in to comment.