Skip to content

Commit

Permalink
tests: fixed compatibility issue
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich committed Dec 16, 2024
1 parent 2152e87 commit e153956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void print_profile(struct cprof_profile *profile)

if (sample->timestamps_count > 0) {
printf(" Timestamps:\n");
for (size_t i = 0; i < sample->timestamps_count; ++i) {
for (i = 0; i < sample->timestamps_count; ++i) {
printf(" Timestamp %zu: %" PRIu64 " ns\n", i, sample->timestamps_unix_nano[i]);
}
} else {
Expand Down

0 comments on commit e153956

Please sign in to comment.