Skip to content

Commit

Permalink
Update printf format following variable type change to size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
rafbiels committed Nov 22, 2024
1 parent dbe6aa5 commit e86712f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sycl/test-e2e/USM/fill_any_size.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ int test(sycl::queue &q, uint8_t firstValue = 0) {
sycl::free(dptr, q);

if (!pass || verbose) {
printf("Pattern size %3lu bytes, %s values (initial %3u) %s\n", PatternSize,
printf("Pattern size %3zu bytes, %s values (initial %3u) %s\n", PatternSize,
(SameValue ? " equal" : "varied"), firstValue,
(pass ? "== PASS ==" : "== FAIL =="));
}
Expand All @@ -71,9 +71,9 @@ int main() {
sycl::queue q{};
int failures = testSizes(q, std::make_index_sequence<MaxPatternSize>{});
if (failures > 0) {
printf("%d / %lu tests failed\n", failures, 2 * MaxPatternSize);
printf("%d / %zu tests failed\n", failures, 2u * MaxPatternSize);
} else {
printf("All %lu tests passed\n", 2 * MaxPatternSize);
printf("All %zu tests passed\n", 2u * MaxPatternSize);
}
return failures;
}

0 comments on commit e86712f

Please sign in to comment.