Skip to content

Commit e86712f

Browse files
committed
Update printf format following variable type change to size_t
1 parent dbe6aa5 commit e86712f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sycl/test-e2e/USM/fill_any_size.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ int test(sycl::queue &q, uint8_t firstValue = 0) {
5050
sycl::free(dptr, q);
5151

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

0 commit comments

Comments
 (0)