Skip to content

Commit

Permalink
fix 64bit printf
Browse files Browse the repository at this point in the history
  • Loading branch information
wysiwyng committed Jun 28, 2022
1 parent 78716e7 commit d114ed3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/SW/riscv_counters/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ int main()
printf("time_l: %u, time_h: %u\n", time_l, time_h);
printf("instret_l: %u, instret_h: %u\n", instret_l, instret_h);

printf("cycle: %lu\n", cycle);
printf("time: %lu\n", time);
printf("instret: %lu\n", instret);
printf("cycle: %llu\n", cycle);
printf("time: %llu\n", time);
printf("instret: %llu\n", instret);

printf("---\n");
}
Expand Down

0 comments on commit d114ed3

Please sign in to comment.